de.huxhorn.lilith.sender
Class MultiplexSendBytesService

java.lang.Object
  extended by de.huxhorn.lilith.sender.MultiplexSendBytesService
All Implemented Interfaces:
SendBytesService

public class MultiplexSendBytesService
extends java.lang.Object
implements SendBytesService


Constructor Summary
MultiplexSendBytesService(java.lang.String name, java.util.List<java.lang.String> remoteHostsList, int port, WriteByteStrategy writeByteStrategy, int reconnectionDelay, int queueSize)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiplexSendBytesService

public MultiplexSendBytesService(java.lang.String name,
                                 java.util.List<java.lang.String> remoteHostsList,
                                 int port,
                                 WriteByteStrategy writeByteStrategy,
                                 int reconnectionDelay,
                                 int queueSize)
Method Detail

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.