Interface NetworkConnection
-
- All Known Subinterfaces:
ServerNetworkConnection
- All Known Implementing Classes:
NonBlockingConnection
public interface NetworkConnection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
close()
SocketAddress
getLocalAddress()
long
getMaxReadIdleMillis()
long
getMaxWriteIdleMillis()
Certificate
getPeerCertificate()
Principal
getPeerPrincipal()
SocketAddress
getRemoteAddress()
ByteBufferSender
getSender()
void
setMaxReadIdleMillis(long millis)
void
setMaxWriteIdleMillis(long millis)
void
start()
-
-
-
Method Detail
-
getSender
ByteBufferSender getSender()
-
start
void start()
-
close
void close()
-
getRemoteAddress
SocketAddress getRemoteAddress()
- Returns:
- the remote address of the underlying socket.
-
getLocalAddress
SocketAddress getLocalAddress()
- Returns:
- the local address of the underlying socket.
-
setMaxWriteIdleMillis
void setMaxWriteIdleMillis(long millis)
-
setMaxReadIdleMillis
void setMaxReadIdleMillis(long millis)
-
getPeerPrincipal
Principal getPeerPrincipal()
-
getPeerCertificate
Certificate getPeerCertificate()
-
getMaxReadIdleMillis
long getMaxReadIdleMillis()
-
getMaxWriteIdleMillis
long getMaxWriteIdleMillis()
-
-