public interface ISckConnectionHolder
ISckConnectionHolder is the interface to the underlying connection.
Method Summary | |
---|---|
byte[] |
getCurrentlyReceivedBytes()
Only available before the receive action is terminated by a call to receiveSuccess() or handleException(). Otherwise, make use of getFinallyReceivedBytes() . |
int |
getCurrentlyReceivedBytesCount()
Only available before the receive action is terminated by a call to receiveSuccess() or handleException(). Otherwise, make use of getFinallyReceivedBytes() . |
byte[] |
getFinallyReceivedBytes()
Only available after the receive action is terminated by a call to receiveSuccess() or handleException(). Otherwise, make use of getCurrentlyReceivedBytes() . |
int |
getFinallyReceivedBytesCount()
Only available after the receive action is terminated by a call to receiveSuccess() or handleException(). Otherwise, make use of getCurrentlyReceivedBytesCount() . |
java.lang.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 |
setResponseTime(int responseTime)
Sets the response time to be reported. Overrides the default value that can be retrieved by a call to getResponseTime() .See getResponseTime for the explanation about the default value. Make use of getLastConnectOrSendTimeStamp() to get the timestamp of the starting event. |
Method Detail |
---|
java.lang.String getHostName()
int getPort()
boolean 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()
.
int getFinallyReceivedBytesCount()
getCurrentlyReceivedBytesCount()
.
byte[] getFinallyReceivedBytes()
getCurrentlyReceivedBytes()
.