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 buffer) |
void |
send(java.util.List<java.nio.ByteBuffer> buffers) |
protected abstract void |
sendInternal(java.util.List<java.nio.ByteBuffer> buffers,
byte[] ackToken) |
void |
sendWithAck(java.util.List<java.nio.ByteBuffer> buffers,
byte[] ackToken) |
protected Sender(Sender.Config config)
public void send(java.nio.ByteBuffer buffer)
throws java.io.IOException
java.io.IOExceptionpublic void send(java.util.List<java.nio.ByteBuffer> buffers)
throws java.io.IOException
java.io.IOExceptionpublic void sendWithAck(java.util.List<java.nio.ByteBuffer> buffers,
byte[] ackToken)
throws java.io.IOException
java.io.IOExceptionpublic abstract boolean isAvailable()
protected abstract void sendInternal(java.util.List<java.nio.ByteBuffer> buffers,
byte[] ackToken)
throws java.io.IOException
java.io.IOException