Class ParallelNioSender
java.lang.Object
org.apache.catalina.tribes.transport.AbstractSender
org.apache.catalina.tribes.transport.nio.ParallelNioSender
- All Implemented Interfaces:
DataSender,MultiPointSender
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Selectorprotected final longprotected static final StringManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidSend to the specified member.voidconnect()Connect.voidDisconnect.protected voidfinalize()booleanKeepalive.voidStop sending to the specified member.voidsendMessage(Member[] destination, ChannelMessage msg) Send the specified message.Methods inherited from class org.apache.catalina.tribes.transport.AbstractSender
getAddress, getAttempt, getConnectTime, getDestination, getDirectBuffer, getKeepAliveCount, getKeepAliveTime, getMaxRetryAttempts, getOoBInline, getPort, getRequestCount, getRxBufSize, getSoKeepAlive, getSoLingerOn, getSoLingerTime, getSoReuseAddress, getSoTrafficClass, getTcpNoDelay, getThrowOnFailedAck, getTimeout, getTxBufSize, getUdpPort, getUdpRxBufSize, getUdpTxBufSize, isConnected, isUdpBased, setAddress, setAttempt, setConnected, setConnectTime, setDestination, setDirectBuffer, setKeepAliveCount, setKeepAliveTime, setMaxRetryAttempts, setOoBInline, setPort, setRequestCount, setRxBufSize, setSoKeepAlive, setSoLingerOn, setSoLingerTime, setSoReuseAddress, setSoTrafficClass, setTcpNoDelay, setThrowOnFailedAck, setTimeout, setTxBufSize, setUdpBased, setUdpPort, setUdpRxBufSize, setUdpTxBufSize, transferPropertiesMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.catalina.tribes.transport.DataSender
getConnectTime, getRequestCount, isConnected, setKeepAliveCount, setKeepAliveTime, setRxBufSize, setTimeout, setTxBufSizeMethods inherited from interface org.apache.catalina.tribes.transport.MultiPointSender
setDirectBuffer, setMaxRetryAttempts
-
Field Details
-
sm
-
selectTimeout
protected final long selectTimeout- See Also:
-
selector
-
nioSenders
-
-
Constructor Details
-
ParallelNioSender
- Throws:
IOException
-
-
Method Details
-
sendMessage
Description copied from interface:MultiPointSenderSend the specified message.- Specified by:
sendMessagein interfaceMultiPointSender- Parameters:
destination- the message destinationsmsg- the data to send- Throws:
ChannelException- if an error occurs
-
connect
public void connect()Description copied from interface:DataSenderConnect.- Specified by:
connectin interfaceDataSender
-
add
Description copied from interface:MultiPointSenderSend to the specified member.- Specified by:
addin interfaceMultiPointSender- Parameters:
member- the member
-
remove
Description copied from interface:MultiPointSenderStop sending to the specified member.- Specified by:
removein interfaceMultiPointSender- Parameters:
member- the member
-
disconnect
public void disconnect()Description copied from interface:DataSenderDisconnect.- Specified by:
disconnectin interfaceDataSender
-
finalize
-
keepalive
public boolean keepalive()Description copied from interface:DataSenderKeepalive.- Specified by:
keepalivein interfaceDataSender- Overrides:
keepalivein classAbstractSender- Returns:
trueif kept alive
-