public class IoNetworkConnection extends Object implements NetworkConnection
Constructor and Description |
---|
IoNetworkConnection(Socket socket,
ExceptionHandlingByteBufferReceiver delegate,
int sendBufferSize,
int receiveBufferSize,
long timeout,
Ticker ticker) |
Modifier and Type | Method and 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() |
public IoNetworkConnection(Socket socket, ExceptionHandlingByteBufferReceiver delegate, int sendBufferSize, int receiveBufferSize, long timeout, Ticker ticker)
public void start()
start
in interface NetworkConnection
public ByteBufferSender getSender()
getSender
in interface NetworkConnection
public void close()
close
in interface NetworkConnection
public SocketAddress getRemoteAddress()
getRemoteAddress
in interface NetworkConnection
public SocketAddress getLocalAddress()
getLocalAddress
in interface NetworkConnection
public void setMaxWriteIdleMillis(long millis)
setMaxWriteIdleMillis
in interface NetworkConnection
public void setMaxReadIdleMillis(long millis)
setMaxReadIdleMillis
in interface NetworkConnection
public Principal getPeerPrincipal()
getPeerPrincipal
in interface NetworkConnection
public Certificate getPeerCertificate()
getPeerCertificate
in interface NetworkConnection
public long getMaxReadIdleMillis()
getMaxReadIdleMillis
in interface NetworkConnection
public long getMaxWriteIdleMillis()
getMaxWriteIdleMillis
in interface NetworkConnection
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.