org.openspaces.persistency.cassandra.pool
Class ConnectionResource
java.lang.Object
com.j_spaces.kernel.pool.Resource
org.openspaces.persistency.cassandra.pool.ConnectionResource
- All Implemented Interfaces:
- com.j_spaces.kernel.pool.IResource
public class ConnectionResource
- extends com.j_spaces.kernel.pool.Resource
- implements com.j_spaces.kernel.pool.IResource
A IResource
representing a Connection
.
- Since:
- 9.1.1
- Author:
- Dan Kilman
Methods inherited from class com.j_spaces.kernel.pool.Resource |
acquire, isAcquired, isFromPool, release, setAcquired, setFromPool |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.j_spaces.kernel.pool.IResource |
acquire, isAcquired, isFromPool, release, setAcquired, setFromPool |
ConnectionResource
public ConnectionResource(Connection connection,
DataSource dataSource)
clear
public void clear()
- Specified by:
clear
in interface com.j_spaces.kernel.pool.IResource
- Specified by:
clear
in class com.j_spaces.kernel.pool.Resource
getConnection
public Connection getConnection()
- Returns:
- The underlying
Connection
represented by this ConnectionResource
closeCurrentConnection
public void closeCurrentConnection()
- Must be called by the resource owner
close
public void close()
Copyright © GigaSpaces.