Class ConnectionResource
java.lang.Object
com.j_spaces.kernel.pool.Resource
org.openspaces.persistency.cassandra.pool.ConnectionResource
- All Implemented Interfaces:
IResource
A
IResource representing a Connection.- Since:
- 9.1.1
- Author:
- Dan Kilman
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.j_spaces.kernel.pool.Resource
acquire, isAcquired, isFromPool, release, setAcquired, setFromPoolMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.j_spaces.kernel.pool.IResource
acquire, isAcquired, isFromPool, release, setAcquired, setFromPool
-
Constructor Details
-
ConnectionResource
-
-
Method Details
-
clear
public void clear()Description copied from interface:IResourceCleans the resource of its contents so it can be returned to the pool.You may use the
IResource.isFromPool()indication to decide of a special action before returning a resource to the pool, or discard any actions on resources not returning to the pool. -
getConnection
- Returns:
- The underlying
Connectionrepresented by thisConnectionResource
-
closeCurrentConnection
public void closeCurrentConnection()Must be called by the resource owner -
close
public void close()
-