|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.cafesoft.core.message.MessageSocketPoolableObjectFactory
KRJ - doc
| Constructor Summary | |
MessageSocketPoolableObjectFactory(Logger logger)
Create a MessageSocketPoolableObjectFactory. |
|
| Method Summary | |
Object |
createObject()
Create a new object for the ObjectPool. |
void |
destroyObject(Object object)
Destroy an object that can no longer needed by the ObjectPool. |
Connection |
getConnection()
Get the Factory's Connection object. |
void |
recycle()
Recycle the resources of this object. |
void |
setConnection(Connection connection)
Set the Connection within the Factory. |
void |
setReceiverContentType(String contentType)
Set the Receiver's Content Type of the Factory. |
void |
setSenderContentType(String contentType)
Set the Sender's Content Type of the Factory. |
boolean |
validateObject(Object object)
Ensures that the Object is safe to be returned by the pool. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MessageSocketPoolableObjectFactory(Logger logger)
| Method Detail |
public void recycle()
recycle in interface Recyclablepublic void setConnection(Connection connection)
connection - the new Connection objectpublic Connection getConnection()
public void setSenderContentType(String contentType)
contentType - the new contentType of the Factorypublic void setReceiverContentType(String contentType)
contentType - the new contentType of the Factory
public Object createObject()
throws Exception
createObject in interface PoolableObjectFactoryException - throws an Exception if an error occurred while
trying to create a new objectpublic void destroyObject(Object object)
destroyObject in interface PoolableObjectFactoryobject - The object to be destroyed.public boolean validateObject(Object object)
validateObject in interface PoolableObjectFactoryobject - the object to be validated.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||