A - The type of the peer addresspublic interface Connection<A>
extends java.io.Closeable
| Modifier and Type | Method and Description |
|---|---|
void |
connect(A dest) |
boolean |
isConnected() |
boolean |
isExpired(long milis) |
boolean |
isOpen() |
void |
send(byte[] buf,
int offset,
int length) |
void |
send(java.nio.ByteBuffer buf) |
void |
start() |
boolean isOpen()
boolean isConnected()
boolean isExpired(long milis)
void connect(A dest) throws java.lang.Exception
java.lang.Exceptionvoid start()
throws java.lang.Exception
java.lang.Exceptionvoid send(byte[] buf,
int offset,
int length)
throws java.lang.Exception
java.lang.Exceptionvoid send(java.nio.ByteBuffer buf) throws java.lang.Exception
java.lang.ExceptionCopyright © 1998-2020 Red Hat. All Rights Reserved.