public class DatagramSocketFactory
extends org.apache.commons.pool.BaseKeyedPoolableObjectFactory
Constructor and Description |
---|
DatagramSocketFactory()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
destroyObject(java.lang.Object key,
java.lang.Object obj)
Closes the socket.
|
java.lang.Object |
makeObject(java.lang.Object key)
Creates the socket and the writer to go with it.
|
boolean |
validateObject(java.lang.Object key,
java.lang.Object obj)
Validates that the socket is good.
|
public java.lang.Object makeObject(java.lang.Object key) throws java.lang.Exception
makeObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
makeObject
in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
java.lang.Exception
public void destroyObject(java.lang.Object key, java.lang.Object obj) throws java.lang.Exception
destroyObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
destroyObject
in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
java.lang.Exception
public boolean validateObject(java.lang.Object key, java.lang.Object obj)
validateObject
in interface org.apache.commons.pool.KeyedPoolableObjectFactory
validateObject
in class org.apache.commons.pool.BaseKeyedPoolableObjectFactory
Copyright © 2013 Jon Stevens and a gang of pencils. All Rights Reserved. Build version: 20130828-162948-517c4427f5