Class AbstractSender
java.lang.Object
org.apache.catalina.tribes.transport.AbstractSender
- All Implemented Interfaces:
DataSender
- Direct Known Subclasses:
BioSender
,MultipointBioSender
,NioSender
,ParallelNioSender
,PooledSender
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract void
connect()
connectabstract void
disconnect TODO Implement this org.apache.catalina.tribes.transport.DataSender methodint
long
boolean
int
long
int
boolean
int
getPort()
int
int
boolean
boolean
int
boolean
int
boolean
boolean
long
int
int
int
int
boolean
boolean
boolean
keepalivevoid
setAddress
(InetAddress address) void
setAttempt
(int attempt) protected void
setConnected
(boolean connected) void
setConnectTime
(long connectTime) void
setDestination
(Member destination) void
setDirectBuffer
(boolean directBuffer) void
setKeepAliveCount
(int keepAliveCount) void
setKeepAliveTime
(long keepAliveTime) void
setMaxRetryAttempts
(int maxRetryAttempts) void
setOoBInline
(boolean ooBInline) void
setPort
(int port) void
setRequestCount
(int requestCount) void
setRxBufSize
(int rxBufSize) void
setSoKeepAlive
(boolean soKeepAlive) void
setSoLingerOn
(boolean soLingerOn) void
setSoLingerTime
(int soLingerTime) void
setSoReuseAddress
(boolean soReuseAddress) void
setSoTrafficClass
(int soTrafficClass) void
setTcpNoDelay
(boolean tcpNoDelay) void
setThrowOnFailedAck
(boolean throwOnFailedAck) void
setTimeout
(long timeout) void
setTxBufSize
(int txBufSize) void
setUdpBased
(boolean udpBased) void
setUdpPort
(int udpPort) void
setUdpRxBufSize
(int udpRxBufSize) void
setUdpTxBufSize
(int udpTxBufSize) static void
transferProperties
(AbstractSender from, AbstractSender to) transfers sender properties from one sender to another
-
Constructor Details
-
AbstractSender
public AbstractSender()
-
-
Method Details
-
transferProperties
transfers sender properties from one sender to another- Parameters:
from
- AbstractSenderto
- AbstractSender
-
connect
connect- Specified by:
connect
in interfaceDataSender
- Throws:
IOException
- TODO Implement this org.apache.catalina.tribes.transport.DataSender method
-
disconnect
public abstract void disconnect()disconnect TODO Implement this org.apache.catalina.tribes.transport.DataSender method- Specified by:
disconnect
in interfaceDataSender
-
keepalive
public boolean keepalive()keepalive- Specified by:
keepalive
in interfaceDataSender
- Returns:
- boolean TODO Implement this org.apache.catalina.tribes.transport.DataSender method
-
setConnected
protected void setConnected(boolean connected) -
isConnected
public boolean isConnected()- Specified by:
isConnected
in interfaceDataSender
-
getConnectTime
public long getConnectTime()- Specified by:
getConnectTime
in interfaceDataSender
-
getDestination
-
getKeepAliveCount
public int getKeepAliveCount() -
getKeepAliveTime
public long getKeepAliveTime() -
getRequestCount
public int getRequestCount()- Specified by:
getRequestCount
in interfaceDataSender
-
getRxBufSize
public int getRxBufSize() -
getTimeout
public long getTimeout() -
getTxBufSize
public int getTxBufSize() -
getAddress
-
getPort
public int getPort() -
getMaxRetryAttempts
public int getMaxRetryAttempts() -
setDirectBuffer
public void setDirectBuffer(boolean directBuffer) -
getDirectBuffer
public boolean getDirectBuffer() -
getAttempt
public int getAttempt() -
getTcpNoDelay
public boolean getTcpNoDelay() -
getSoKeepAlive
public boolean getSoKeepAlive() -
getOoBInline
public boolean getOoBInline() -
getSoReuseAddress
public boolean getSoReuseAddress() -
getSoLingerOn
public boolean getSoLingerOn() -
getSoLingerTime
public int getSoLingerTime() -
getSoTrafficClass
public int getSoTrafficClass() -
getThrowOnFailedAck
public boolean getThrowOnFailedAck() -
setKeepAliveCount
public void setKeepAliveCount(int keepAliveCount) - Specified by:
setKeepAliveCount
in interfaceDataSender
-
setKeepAliveTime
public void setKeepAliveTime(long keepAliveTime) - Specified by:
setKeepAliveTime
in interfaceDataSender
-
setRequestCount
public void setRequestCount(int requestCount) -
setRxBufSize
public void setRxBufSize(int rxBufSize) - Specified by:
setRxBufSize
in interfaceDataSender
-
setTimeout
public void setTimeout(long timeout) - Specified by:
setTimeout
in interfaceDataSender
-
setTxBufSize
public void setTxBufSize(int txBufSize) - Specified by:
setTxBufSize
in interfaceDataSender
-
setConnectTime
public void setConnectTime(long connectTime) -
setMaxRetryAttempts
public void setMaxRetryAttempts(int maxRetryAttempts) -
setAttempt
public void setAttempt(int attempt) -
setTcpNoDelay
public void setTcpNoDelay(boolean tcpNoDelay) -
setSoKeepAlive
public void setSoKeepAlive(boolean soKeepAlive) -
setOoBInline
public void setOoBInline(boolean ooBInline) -
setSoReuseAddress
public void setSoReuseAddress(boolean soReuseAddress) -
setSoLingerOn
public void setSoLingerOn(boolean soLingerOn) -
setSoLingerTime
public void setSoLingerTime(int soLingerTime) -
setSoTrafficClass
public void setSoTrafficClass(int soTrafficClass) -
setThrowOnFailedAck
public void setThrowOnFailedAck(boolean throwOnFailedAck) -
setDestination
- Throws:
UnknownHostException
-
setPort
public void setPort(int port) -
setAddress
-
isUdpBased
public boolean isUdpBased() -
setUdpBased
public void setUdpBased(boolean udpBased) -
getUdpPort
public int getUdpPort() -
setUdpPort
public void setUdpPort(int udpPort) -
getUdpRxBufSize
public int getUdpRxBufSize() -
setUdpRxBufSize
public void setUdpRxBufSize(int udpRxBufSize) -
getUdpTxBufSize
public int getUdpTxBufSize() -
setUdpTxBufSize
public void setUdpTxBufSize(int udpTxBufSize)
-