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
Exception
public abstract void send(ByteBuffer buf) throws Exception
Exception
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.