public abstract class Connection
extends java.lang.Object
implements java.io.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 |
isConnectionPending() |
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(java.nio.ByteBuffer buf) |
abstract void |
start() |
abstract java.lang.String |
status() |
protected static final byte[] cookie
protected Address peer_addr
protected long last_access
public abstract boolean isOpen()
public abstract boolean isConnected()
public abstract boolean isConnectionPending()
public abstract Address localAddress()
public abstract Address peerAddress()
public abstract boolean isExpired(long millis)
public abstract void connect(Address dest) throws java.lang.Exception
java.lang.Exception
public abstract void start() throws java.lang.Exception
java.lang.Exception
public abstract void send(byte[] buf, int offset, int length) throws java.lang.Exception
java.lang.Exception
public abstract void send(java.nio.ByteBuffer buf) throws java.lang.Exception
java.lang.Exception
public abstract java.lang.String status()
Copyright © 1998-2020 Red Hat. All Rights Reserved.