|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.emory.mathcs.util.net.Connection
Single connection from pool of connections. Every connection has associated connected socket and expiration timeout.
ConnectionPool
Method Summary | |
void |
close()
Closes this connection. |
java.net.Socket |
getSocket()
Returns the socket associated with this connection. |
void |
returnToPool()
Returns this connection to its pool. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void returnToPool()
closed
.
Connection may be not reusable if it is left by the preceding
operation in an inconsistent state, e.g. if the client failed to read
all the data written by the server etc. The precise meaning of a
consistent state is defined by a higher-level application protocol.
After returning the connection to the pool, client should not use or close the socket associated with that connection.
public void close()
public java.net.Socket getSocket()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |