public interface ISckConnectionHolder
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getCurrentlyReceivedBytes()
Only available before the receive action is terminated by a call to receiveSuccess() or
handleException().
|
int |
getCurrentlyReceivedBytesCount()
Only available before the receive action is terminated by a call to receiveSuccess() or
handleException().
|
byte[] |
getFinallyReceivedBytes()
Only available after the receive action is terminated by a call to receiveSuccess() or
handleException().
|
int |
getFinallyReceivedBytesCount()
Only available after the receive action is terminated by a call to receiveSuccess() or
handleException().
|
String |
getHostName() |
long |
getLastConnectOrSendTimeStamp()
As a result of a call to
System.currentTimeMillis(), timestamps are collected by the
connection holder when the Connection and the Send actions are actually done. |
byte[] |
getLastSentBytes() |
int |
getLastSentBytesCount() |
int |
getPort() |
int |
getResponseTime() |
boolean |
isConnected() |
boolean |
isEndOfStream() |
void |
rewind(int extraLength)
Only useful before the receive action is terminated by a call to receiveSuccess() or
handleException().
|
void |
setHostName(String newHostName)
Change the host name or IP v4 or IP v6 address of the remote peer of the underlying connection.
|
void |
setPort(int newPort)
Change the port number of the remote peer of the underlying connection.
|
void |
setResponseTime(int responseTime)
Sets the response time to be reported.
|
String getHostName()
int getPort()
void setHostName(String newHostName)
newHostName - the new value to be used for this connectionvoid setPort(int newPort)
newPort - the new value to be used for this connectionboolean isConnected()
boolean isEndOfStream()
int getResponseTime()
void setResponseTime(int responseTime)
getResponseTime().getLastConnectOrSendTimeStamp() to get the timestamp of the starting event.responseTime - the new response time value to reportlong getLastConnectOrSendTimeStamp()
System.currentTimeMillis(), timestamps are collected by the
connection holder when the Connection and the Send actions are actually done.int getLastSentBytesCount()
byte[] getLastSentBytes()
int getCurrentlyReceivedBytesCount()
getFinallyReceivedBytes().byte[] getCurrentlyReceivedBytes()
getFinallyReceivedBytes().void rewind(int extraLength)
throws IOException
extraLength - the number of bytes that have been read and that must be made available to next read actionIOException - if something gets wrong during the rewind operationint getFinallyReceivedBytesCount()
getCurrentlyReceivedBytesCount().byte[] getFinallyReceivedBytes()
getCurrentlyReceivedBytes().© Copyright IBM Corp. 2013. All rights reserved.