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