Class ConnectionResource

java.lang.Object
com.j_spaces.kernel.pool.Resource
org.openspaces.persistency.cassandra.pool.ConnectionResource
All Implemented Interfaces:
IResource

public class ConnectionResource extends Resource implements IResource
A IResource representing a Connection.
Since:
9.1.1
Author:
Dan Kilman
  • Constructor Details

  • Method Details

    • clear

      public void clear()
      Description copied from interface: IResource
      Cleans 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.

      Specified by:
      clear in interface IResource
      Specified by:
      clear in class Resource
      See Also:
    • 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()