public interface ClientSocketApi
Modifier and Type | Method and Description |
---|---|
void |
clearIdleStartTime()
Sets the idle start time.
|
void |
clearRecycle()
Clears the recycled connections.
|
void |
close() |
void |
free(long idleStartTime)
Adds the stream to the free pool.
|
java.lang.String |
getDebugId()
Returns the debug id.
|
long |
getIdleStartTime()
Returns the idle start time,
i.e.
|
ReadStream |
getInputStream()
Returns the input stream.
|
WriteStream |
getOutputStream()
Returns the write stream.
|
ClientSocketFactory |
getPool()
Returns the owning pool
|
boolean |
isClosed() |
boolean |
isIdleAlmostExpired(long delta)
Returns true if nearing end of free time.
|
boolean |
isIdleExpired()
Returns true if nearing end of free time.
|
boolean |
isPoolSequenceIdValid()
Returns true if the sequence id is valid.
|
void |
setIdleStartTime(long idleStartTime)
Sets the idle start time.
|
void |
toActive() |
ClientSocketFactory getPool()
ReadStream getInputStream()
WriteStream getOutputStream()
long getIdleStartTime()
void setIdleStartTime(long idleStartTime)
void clearIdleStartTime()
boolean isIdleExpired()
boolean isIdleAlmostExpired(long delta)
boolean isPoolSequenceIdValid()
java.lang.String getDebugId()
void clearRecycle()
void free(long idleStartTime)
idleStartTime
- the time to be used as the start
of the idle period.void toActive()
boolean isClosed()
void close()