Class TCPRemoteCommitProvider.HostAddress.SocketPoolableObjectFactory

java.lang.Object
org.apache.commons.pool2.BaseObject
org.apache.commons.pool2.BasePooledObjectFactory<Socket>
org.apache.openjpa.event.TCPRemoteCommitProvider.HostAddress.SocketPoolableObjectFactory
All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<Socket>
Enclosing class:
TCPRemoteCommitProvider.HostAddress

protected class TCPRemoteCommitProvider.HostAddress.SocketPoolableObjectFactory extends org.apache.commons.pool2.BasePooledObjectFactory<Socket>
Factory for pooled sockets.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    void
    destroyObject(org.apache.commons.pool2.PooledObject<Socket> p)
     
    org.apache.commons.pool2.PooledObject<Socket>
    wrap(Socket obj)
     

    Methods inherited from class org.apache.commons.pool2.BasePooledObjectFactory

    activateObject, makeObject, passivateObject, validateObject

    Methods inherited from class org.apache.commons.pool2.BaseObject

    toString, toStringAppendFields

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.apache.commons.pool2.PooledObjectFactory

    destroyObject
  • Constructor Details

    • SocketPoolableObjectFactory

      protected SocketPoolableObjectFactory()
  • Method Details

    • create

      public Socket create() throws Exception
      Specified by:
      create in class org.apache.commons.pool2.BasePooledObjectFactory<Socket>
      Throws:
      Exception
    • wrap

      public org.apache.commons.pool2.PooledObject<Socket> wrap(Socket obj)
      Specified by:
      wrap in class org.apache.commons.pool2.BasePooledObjectFactory<Socket>
    • destroyObject

      public void destroyObject(org.apache.commons.pool2.PooledObject<Socket> p) throws Exception
      Specified by:
      destroyObject in interface org.apache.commons.pool2.PooledObjectFactory<Socket>
      Overrides:
      destroyObject in class org.apache.commons.pool2.BasePooledObjectFactory<Socket>
      Throws:
      Exception