public abstract class Sender<C extends Sender.Config>
extends java.lang.Object
implements java.io.Closeable
| Modifier and Type | Class and Description |
|---|---|
static class |
Sender.Config<T extends Sender,C extends Sender.Config> |
| Modifier and Type | Method and Description |
|---|---|
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) |
java.lang.String |
toString() |
protected final C extends Sender.Config config
protected Sender(C 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 java.lang.String toString()
toString in class java.lang.Objectprotected abstract void sendInternal(java.util.List<java.nio.ByteBuffer> dataList,
byte[] ackToken)
throws java.io.IOException
java.io.IOException