public abstract class Connection extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
protected static byte[] |
cookie |
protected long |
last_access |
protected Address |
peer_addr |
| Constructor and Description |
|---|
Connection() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
connect(Address dest) |
abstract boolean |
isConnected() |
abstract boolean |
isExpired(long millis) |
abstract boolean |
isOpen() |
abstract Address |
localAddress() |
abstract Address |
peerAddress() |
abstract void |
send(byte[] buf,
int offset,
int length) |
abstract void |
send(ByteBuffer buf) |
abstract void |
start() |
protected static final byte[] cookie
protected Address peer_addr
protected long last_access
public abstract boolean isOpen()
public abstract boolean isConnected()
public abstract Address localAddress()
public abstract Address peerAddress()
public abstract boolean isExpired(long millis)
public abstract void send(byte[] buf,
int offset,
int length)
throws Exception
Exceptionpublic abstract void send(ByteBuffer buf) throws Exception
ExceptionCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.