public class ConnectionCollector extends Object
| Constructor and Description |
|---|
ConnectionCollector(org.jboss.netty.channel.ChannelFactory tcpClientChannelFactory,
org.jboss.netty.channel.ChannelFactory udpChannelFactory,
ConnectionConfiguration configuration,
org.jboss.netty.handler.execution.ExecutionHandler executionHandlerSender,
GlobalTrafficShapingHandler globalTrafficShapingHandler) |
| Modifier and Type | Method and Description |
|---|---|
org.jboss.netty.channel.ChannelFuture |
channelTCP(org.jboss.netty.channel.ChannelHandler timeoutHandler,
org.jboss.netty.channel.ChannelHandler dispatcherReply,
SocketAddress remoteAddress,
int connectTimeoutMillis,
TCPChannelCache channelChache)
Returns a channel that is managed by this pool.
|
org.jboss.netty.channel.Channel |
channelUDP(org.jboss.netty.channel.ChannelHandler timeoutHandler,
org.jboss.netty.channel.ChannelHandler replyHandler,
boolean allowBroadcast) |
void |
shutdown()
Close all open connections and prevent creating new ones.
|
String |
toString() |
public ConnectionCollector(org.jboss.netty.channel.ChannelFactory tcpClientChannelFactory,
org.jboss.netty.channel.ChannelFactory udpChannelFactory,
ConnectionConfiguration configuration,
org.jboss.netty.handler.execution.ExecutionHandler executionHandlerSender,
GlobalTrafficShapingHandler globalTrafficShapingHandler)
public org.jboss.netty.channel.ChannelFuture channelTCP(org.jboss.netty.channel.ChannelHandler timeoutHandler,
org.jboss.netty.channel.ChannelHandler dispatcherReply,
SocketAddress remoteAddress,
int connectTimeoutMillis,
TCPChannelCache channelChache)
throws org.jboss.netty.channel.ChannelException,
InterruptedException
channelChache - connectTimeout - ioHandler - The handler that isInterruptedExceptionorg.jboss.netty.channel.ChannelExceptionpublic org.jboss.netty.channel.Channel channelUDP(org.jboss.netty.channel.ChannelHandler timeoutHandler,
org.jboss.netty.channel.ChannelHandler replyHandler,
boolean allowBroadcast)
throws org.jboss.netty.channel.ChannelException
org.jboss.netty.channel.ChannelExceptionpublic void shutdown()
Copyright © 2011. All Rights Reserved.