Package org.apache.openjpa.event
Class TCPRemoteCommitProvider.HostAddress.SocketPoolableObjectFactory
- java.lang.Object
-
- org.apache.commons.pool2.BaseObject
-
- org.apache.commons.pool2.BasePooledObjectFactory<java.net.Socket>
-
- org.apache.openjpa.event.TCPRemoteCommitProvider.HostAddress.SocketPoolableObjectFactory
-
- All Implemented Interfaces:
org.apache.commons.pool2.PooledObjectFactory<java.net.Socket>
- Enclosing class:
- TCPRemoteCommitProvider.HostAddress
protected class TCPRemoteCommitProvider.HostAddress.SocketPoolableObjectFactory extends org.apache.commons.pool2.BasePooledObjectFactory<java.net.Socket>
Factory for pooled sockets.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SocketPoolableObjectFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.Socket
create()
void
destroyObject(org.apache.commons.pool2.PooledObject<java.net.Socket> p)
org.apache.commons.pool2.PooledObject<java.net.Socket>
wrap(java.net.Socket obj)
-
Methods inherited from class org.apache.commons.pool2.BasePooledObjectFactory
activateObject, makeObject, passivateObject, validateObject
-
-
-
-
Method Detail
-
create
public java.net.Socket create() throws java.lang.Exception
- Specified by:
create
in classorg.apache.commons.pool2.BasePooledObjectFactory<java.net.Socket>
- Throws:
java.lang.Exception
-
wrap
public org.apache.commons.pool2.PooledObject<java.net.Socket> wrap(java.net.Socket obj)
- Specified by:
wrap
in classorg.apache.commons.pool2.BasePooledObjectFactory<java.net.Socket>
-
destroyObject
public void destroyObject(org.apache.commons.pool2.PooledObject<java.net.Socket> p) throws java.lang.Exception
- Specified by:
destroyObject
in interfaceorg.apache.commons.pool2.PooledObjectFactory<java.net.Socket>
- Overrides:
destroyObject
in classorg.apache.commons.pool2.BasePooledObjectFactory<java.net.Socket>
- Throws:
java.lang.Exception
-
-