Interface DataSender
-
- All Known Subinterfaces:
MultiPointSender
- All Known Implementing Classes:
AbstractSender,NioSender,ParallelNioSender,PooledParallelSender,PooledSender
public interface DataSender
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidconnect()Connect.voiddisconnect()Disconnect.longgetConnectTime()intgetRequestCount()booleanisConnected()booleankeepalive()Keepalive.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 Detail
-
connect
void connect() throws java.io.IOExceptionConnect.- Throws:
java.io.IOException- when an error occurs
-
disconnect
void disconnect()
Disconnect.
-
isConnected
boolean isConnected()
- Returns:
trueif connected
-
setRxBufSize
void setRxBufSize(int size)
Set the receive buffer size.- Parameters:
size- the new size
-
setTxBufSize
void setTxBufSize(int size)
Set the transmit buffer size.- Parameters:
size- the new size
-
keepalive
boolean keepalive()
Keepalive.- Returns:
trueif kept alive
-
setTimeout
void setTimeout(long timeout)
Set the socket timeout.- Parameters:
timeout- in ms
-
setKeepAliveCount
void setKeepAliveCount(int maxRequests)
Set the amount of requests during which to keepalive.- Parameters:
maxRequests- the amount of requests
-
setKeepAliveTime
void setKeepAliveTime(long keepAliveTimeInMs)
Set the keepalive time.- Parameters:
keepAliveTimeInMs- the time in ms
-
getRequestCount
int getRequestCount()
- Returns:
- the request count
-
getConnectTime
long getConnectTime()
- Returns:
- the time to connect
-
-