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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiplexSendBytesService
public MultiplexSendBytesService(java.lang.String name,
java.util.List<java.lang.String> remoteHostsList,
int port,
WriteByteStrategy writeByteStrategy,
int reconnectionDelay,
int queueSize)
isDebug
public boolean isDebug()
setDebug
public void setDebug(boolean debug)
startUp
public void startUp()
- Specified by:
startUp
in interface SendBytesService
shutDown
public void shutDown()
- Specified by:
shutDown
in interface SendBytesService
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 interface SendBytesService
- Parameters:
serialized
- the bytes to send.
Copyright © 2007-2009. All Rights Reserved.