public class ClientSocket extends java.lang.Object implements 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 |
getAddress() |
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 |
isAuthenticated()
Returns true if the stream has been authenticated
|
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 |
setAuthenticated(boolean isAuthenticated)
Returns true if the stream has been authenticated
|
void |
setIdleStartTime(long idleStartTime)
Sets the idle start time.
|
void |
switchToHmtp(boolean isUnidir) |
void |
toActive() |
java.lang.String |
toString() |
public ClientSocketFactory getPool()
getPool in interface ClientSocketApipublic ReadStream getInputStream()
getInputStream in interface ClientSocketApipublic WriteStream getOutputStream()
getOutputStream in interface ClientSocketApipublic boolean isAuthenticated()
public void setAuthenticated(boolean isAuthenticated)
public long getIdleStartTime()
getIdleStartTime in interface ClientSocketApipublic void setIdleStartTime(long idleStartTime)
setIdleStartTime in interface ClientSocketApipublic void clearIdleStartTime()
clearIdleStartTime in interface ClientSocketApipublic boolean isIdleExpired()
isIdleExpired in interface ClientSocketApipublic boolean isIdleAlmostExpired(long delta)
isIdleAlmostExpired in interface ClientSocketApipublic boolean isPoolSequenceIdValid()
isPoolSequenceIdValid in interface ClientSocketApipublic java.lang.String getAddress()
public void switchToHmtp(boolean isUnidir)
public java.lang.String getDebugId()
getDebugId in interface ClientSocketApipublic void clearRecycle()
clearRecycle in interface ClientSocketApipublic void free(long idleStartTime)
free in interface ClientSocketApiidleStartTime - the time to be used as the start
of the idle period.public void toActive()
toActive in interface ClientSocketApipublic boolean isClosed()
isClosed in interface ClientSocketApipublic void close()
close in interface ClientSocketApipublic java.lang.String toString()
toString in class java.lang.Object