public class MultiplexSendBytesService extends java.lang.Object implements SendBytesService
Constructor and Description |
---|
MultiplexSendBytesService(java.lang.String name,
java.util.List<java.lang.String> remoteHostsList,
int port,
WriteByteStrategy writeByteStrategy,
long reconnectionDelay,
int queueSize) |
Modifier and Type | Method and Description |
---|---|
boolean |
isDebug() |
void |
sendBytes(byte[] serialized)
A byte-sender is expected to send the given byte array if possible.
|
void |
setDebug(boolean debug) |
void |
shutDown() |
void |
startUp() |
public MultiplexSendBytesService(java.lang.String name, java.util.List<java.lang.String> remoteHostsList, int port, WriteByteStrategy writeByteStrategy, long reconnectionDelay, int queueSize)
public boolean isDebug()
public void setDebug(boolean debug)
public void startUp()
startUp
in interface SendBytesService
public void shutDown()
shutDown
in interface SendBytesService
public void sendBytes(byte[] serialized)
SendBytesService
sendBytes
in interface SendBytesService
serialized
- the bytes to send.