public class NettyConnectionManager extends Object implements NetworkConnectionManager
| Constructor and Description |
|---|
NettyConnectionManager(InetAddress bindAddress,
int bindPort,
int bufferSize,
int numInThreads,
int numOutThreads,
int closeAfterIdleForMs) |
| Modifier and Type | Method and Description |
|---|---|
void |
close(RemoteReceiver receiver) |
void |
enqueue(Envelope envelope,
RemoteReceiver receiver) |
void |
shutdown() |
void |
start(ChannelManager channelManager) |
public NettyConnectionManager(InetAddress bindAddress, int bindPort, int bufferSize, int numInThreads, int numOutThreads, int closeAfterIdleForMs)
public void start(ChannelManager channelManager) throws IOException
start in interface NetworkConnectionManagerIOExceptionpublic void enqueue(Envelope envelope, RemoteReceiver receiver) throws IOException
enqueue in interface NetworkConnectionManagerIOExceptionpublic void close(RemoteReceiver receiver)
close in interface NetworkConnectionManagerpublic void shutdown()
throws IOException
shutdown in interface NetworkConnectionManagerIOExceptionCopyright © 2014 The Apache Software Foundation. All rights reserved.