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 ClientSocketApi
public ReadStream getInputStream()
getInputStream
in interface ClientSocketApi
public WriteStream getOutputStream()
getOutputStream
in interface ClientSocketApi
public boolean isAuthenticated()
public void setAuthenticated(boolean isAuthenticated)
public long getIdleStartTime()
getIdleStartTime
in interface ClientSocketApi
public void setIdleStartTime(long idleStartTime)
setIdleStartTime
in interface ClientSocketApi
public void clearIdleStartTime()
clearIdleStartTime
in interface ClientSocketApi
public boolean isIdleExpired()
isIdleExpired
in interface ClientSocketApi
public boolean isIdleAlmostExpired(long delta)
isIdleAlmostExpired
in interface ClientSocketApi
public boolean isPoolSequenceIdValid()
isPoolSequenceIdValid
in interface ClientSocketApi
public java.lang.String getAddress()
public void switchToHmtp(boolean isUnidir)
public java.lang.String getDebugId()
getDebugId
in interface ClientSocketApi
public void clearRecycle()
clearRecycle
in interface ClientSocketApi
public void free(long idleStartTime)
free
in interface ClientSocketApi
idleStartTime
- the time to be used as the start
of the idle period.public void toActive()
toActive
in interface ClientSocketApi
public boolean isClosed()
isClosed
in interface ClientSocketApi
public void close()
close
in interface ClientSocketApi
public java.lang.String toString()
toString
in class java.lang.Object