public class AsyncNettyNetworkChannel<M> extends Object implements AsynchronousNetworkChannel<M>
| Modifier and Type | Field and Description |
|---|---|
static int |
N_THREADS |
| Constructor and Description |
|---|
AsyncNettyNetworkChannel(NettyNetworkChannelGlobalContext context) |
AsyncNettyNetworkChannel(NettyNetworkManager networkManager) |
| Modifier and Type | Method and Description |
|---|---|
void |
bind(SocketAddress localAddress,
com.google.common.util.concurrent.FutureCallback<Void> callback) |
void |
close(com.google.common.util.concurrent.FutureCallback<Void> callback) |
void |
connect(SocketAddress remoteAddress,
com.google.common.util.concurrent.FutureCallback<Void> callback) |
void |
disconnect(com.google.common.util.concurrent.FutureCallback<Void> callback) |
SocketAddress |
getLocalAddress() |
SocketAddress |
getRemoteAddress() |
boolean |
isBound() |
boolean |
isConnected() |
boolean |
isOpen() |
void |
open(com.google.common.util.concurrent.FutureCallback<Void> callback) |
void |
receive() |
void |
send(M message,
com.google.common.util.concurrent.FutureCallback<Void> callback) |
void |
send(M message,
SocketAddress remoteAddress,
com.google.common.util.concurrent.FutureCallback<Void> callback) |
public static final int N_THREADS
public AsyncNettyNetworkChannel(NettyNetworkManager networkManager)
public AsyncNettyNetworkChannel(NettyNetworkChannelGlobalContext context)
public boolean isOpen()
isOpen in interface AsynchronousNetworkChannel<M>public boolean isBound()
isBound in interface AsynchronousNetworkChannel<M>public SocketAddress getLocalAddress()
getLocalAddress in interface AsynchronousNetworkChannel<M>public boolean isConnected()
isConnected in interface AsynchronousNetworkChannel<M>public SocketAddress getRemoteAddress()
getRemoteAddress in interface AsynchronousNetworkChannel<M>public void open(com.google.common.util.concurrent.FutureCallback<Void> callback)
open in interface AsynchronousNetworkChannel<M>public void close(com.google.common.util.concurrent.FutureCallback<Void> callback)
close in interface AsynchronousNetworkChannel<M>public void bind(SocketAddress localAddress, com.google.common.util.concurrent.FutureCallback<Void> callback)
bind in interface AsynchronousNetworkChannel<M>public void connect(SocketAddress remoteAddress, com.google.common.util.concurrent.FutureCallback<Void> callback)
connect in interface AsynchronousNetworkChannel<M>public void disconnect(com.google.common.util.concurrent.FutureCallback<Void> callback)
disconnect in interface AsynchronousNetworkChannel<M>public void receive()
receive in interface AsynchronousNetworkChannel<M>public void send(M message, com.google.common.util.concurrent.FutureCallback<Void> callback)
send in interface AsynchronousNetworkChannel<M>public void send(M message, SocketAddress remoteAddress, com.google.common.util.concurrent.FutureCallback<Void> callback)
send in interface AsynchronousNetworkChannel<M>Copyright © 2017 TeleStax, Inc.. All Rights Reserved.