Interface DataSender
- All Known Subinterfaces:
- MultiPointSender
- All Known Implementing Classes:
- AbstractSender,- NioSender,- ParallelNioSender,- PooledParallelSender,- PooledSender
public interface DataSender
- 
Method SummaryModifier and TypeMethodDescriptionvoidconnect()Connect.voidDisconnect.longintbooleanbooleanKeepalive.voidsetKeepAliveCount(int maxRequests) Set the amount of requests during which to keepalive.voidsetKeepAliveTime(long keepAliveTimeInMs) Set the keepalive time.voidsetRxBufSize(int size) Set the receive buffer size.voidsetTimeout(long timeout) Set the socket timeout.voidsetTxBufSize(int size) Set the transmit buffer size.
- 
Method Details- 
connect
- 
disconnectvoid disconnect()Disconnect.
- 
isConnectedboolean isConnected()- Returns:
- trueif connected
 
- 
setRxBufSizevoid setRxBufSize(int size) Set the receive buffer size.- Parameters:
- size- the new size
 
- 
setTxBufSizevoid setTxBufSize(int size) Set the transmit buffer size.- Parameters:
- size- the new size
 
- 
keepaliveboolean keepalive()Keepalive.- Returns:
- trueif kept alive
 
- 
setTimeoutvoid setTimeout(long timeout) Set the socket timeout.- Parameters:
- timeout- in ms
 
- 
setKeepAliveCountvoid setKeepAliveCount(int maxRequests) Set the amount of requests during which to keepalive.- Parameters:
- maxRequests- the amount of requests
 
- 
setKeepAliveTimevoid setKeepAliveTime(long keepAliveTimeInMs) Set the keepalive time.- Parameters:
- keepAliveTimeInMs- the time in ms
 
- 
getRequestCountint getRequestCount()- Returns:
- the request count
 
- 
getConnectTimelong getConnectTime()- Returns:
- the time to connect
 
 
-