public abstract class Sender
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
Sender.Config |
static interface |
Sender.Instantiator |
| Modifier | Constructor and Description |
|---|---|
protected |
Sender(Sender.Config config) |
| Modifier and Type | Method and Description |
|---|---|
abstract boolean |
isAvailable() |
void |
send(java.nio.ByteBuffer data) |
void |
send(java.util.List<java.nio.ByteBuffer> dataList) |
protected abstract void |
sendInternal(java.util.List<java.nio.ByteBuffer> dataList,
byte[] ackToken) |
void |
sendWithAck(java.util.List<java.nio.ByteBuffer> dataList,
byte[] ackToken) |
protected Sender(Sender.Config config)
public void send(java.nio.ByteBuffer data)
throws java.io.IOException
java.io.IOExceptionpublic void send(java.util.List<java.nio.ByteBuffer> dataList)
throws java.io.IOException
java.io.IOExceptionpublic void sendWithAck(java.util.List<java.nio.ByteBuffer> dataList,
byte[] ackToken)
throws java.io.IOException
java.io.IOExceptionpublic abstract boolean isAvailable()
protected abstract void sendInternal(java.util.List<java.nio.ByteBuffer> dataList,
byte[] ackToken)
throws java.io.IOException
java.io.IOException