public class SimpleSendBytesService extends java.lang.Object implements SendBytesService
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_POLL_INTERVAL |
static int |
DEFAULT_QUEUE_SIZE |
static int |
DEFAULT_RECONNECTION_DELAY
The default reconnection delay (30000 milliseconds or 30 seconds).
|
| Constructor and Description |
|---|
SimpleSendBytesService(DataOutputStreamFactory dataOutputStreamFactory,
WriteByteStrategy writeByteStrategy) |
SimpleSendBytesService(DataOutputStreamFactory dataOutputStreamFactory,
WriteByteStrategy writeByteStrategy,
int queueSize,
long reconnectionDelay,
int pollInterval) |
| Modifier and Type | Method and Description |
|---|---|
ConnectionState |
getConnectionState() |
boolean |
isDebug() |
void |
sendBytes(byte[] bytes)
A byte-sender is expected to send the given byte array if possible.
|
void |
setDebug(boolean debug) |
void |
shutDown() |
void |
startUp() |
public static final int DEFAULT_RECONNECTION_DELAY
public static final int DEFAULT_QUEUE_SIZE
public static final int DEFAULT_POLL_INTERVAL
public SimpleSendBytesService(DataOutputStreamFactory dataOutputStreamFactory, WriteByteStrategy writeByteStrategy)
public SimpleSendBytesService(DataOutputStreamFactory dataOutputStreamFactory, WriteByteStrategy writeByteStrategy, int queueSize, long reconnectionDelay, int pollInterval)
public boolean isDebug()
public void setDebug(boolean debug)
public ConnectionState getConnectionState()
public void sendBytes(byte[] bytes)
SendBytesServicesendBytes in interface SendBytesServicebytes - the bytes to send.public void startUp()
startUp in interface SendBytesServicepublic void shutDown()
shutDown in interface SendBytesService