Package de.huxhorn.lilith.sender
Class MultiplexSendBytesService
- java.lang.Object
-
- de.huxhorn.lilith.sender.MultiplexSendBytesService
-
- All Implemented Interfaces:
SendBytesService
public class MultiplexSendBytesService extends java.lang.Object implements SendBytesService
-
-
Constructor Summary
Constructors Constructor Description MultiplexSendBytesService(java.lang.String name, java.util.List<java.lang.String> remoteHostsList, int port, WriteByteStrategy writeByteStrategy, long reconnectionDelay, int queueSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
-
-
Constructor Detail
-
MultiplexSendBytesService
public MultiplexSendBytesService(java.lang.String name, java.util.List<java.lang.String> remoteHostsList, int port, WriteByteStrategy writeByteStrategy, long reconnectionDelay, int queueSize)
-
-
Method Detail
-
isDebug
public boolean isDebug()
-
setDebug
public void setDebug(boolean debug)
-
startUp
public void startUp()
- Specified by:
startUp
in interfaceSendBytesService
-
shutDown
public void shutDown()
- Specified by:
shutDown
in interfaceSendBytesService
-
sendBytes
public void sendBytes(byte[] serialized)
Description copied from interface:SendBytesService
A byte-sender is expected to send the given byte array if possible. There is no guarantee that the bytes are really sent out, e.g. in case of an error. There is no feedback of any kind concerning success or failure!- Specified by:
sendBytes
in interfaceSendBytesService
- Parameters:
serialized
- the bytes to send.
-
-