net.tomp2p.connection
Class TCPChannelCache

java.lang.Object
  extended by net.tomp2p.connection.TCPChannelCache

public class TCPChannelCache
extends Object


Field Summary
static String DEFAULT_CHANNEL_NAME
           
 
Constructor Summary
TCPChannelCache(ConnectionCollector connectionCollector, org.jboss.netty.util.Timer timer, org.jboss.netty.channel.group.ChannelGroup channelGroup)
           
 
Method Summary
 void addChannel(Number160 recipientID, Number160 senderID, InetAddress inetAddress, org.jboss.netty.channel.Channel channel)
           
 boolean expireCache()
           
 org.jboss.netty.channel.ChannelFuture getChannel(org.jboss.netty.channel.ChannelHandler timeoutHandler, FutureResponse futureResponse, int connectTimeoutMillis, int tcpIdleTimeoutMillis, Message message, RequestHandlerTCP requestHandler)
           
 org.jboss.netty.channel.ChannelFuture getChannel(String channelName, org.jboss.netty.channel.ChannelHandler timeoutHandler, FutureResponse futureResponse, int connectTimeoutMillis, int tcpIdleTimeoutMillis, Message message, RequestHandlerTCP requestHandler)
           
 DispatcherRequest getDispatcherRequest()
           
 void setDispatcherRequest(DispatcherRequest dispatcherRequest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHANNEL_NAME

public static final String DEFAULT_CHANNEL_NAME
See Also:
Constant Field Values
Constructor Detail

TCPChannelCache

public TCPChannelCache(ConnectionCollector connectionCollector,
                       org.jboss.netty.util.Timer timer,
                       org.jboss.netty.channel.group.ChannelGroup channelGroup)
Method Detail

addChannel

public void addChannel(Number160 recipientID,
                       Number160 senderID,
                       InetAddress inetAddress,
                       org.jboss.netty.channel.Channel channel)

getChannel

public org.jboss.netty.channel.ChannelFuture getChannel(org.jboss.netty.channel.ChannelHandler timeoutHandler,
                                                        FutureResponse futureResponse,
                                                        int connectTimeoutMillis,
                                                        int tcpIdleTimeoutMillis,
                                                        Message message,
                                                        RequestHandlerTCP requestHandler)
                                                 throws InterruptedException
Throws:
InterruptedException

getChannel

public org.jboss.netty.channel.ChannelFuture getChannel(String channelName,
                                                        org.jboss.netty.channel.ChannelHandler timeoutHandler,
                                                        FutureResponse futureResponse,
                                                        int connectTimeoutMillis,
                                                        int tcpIdleTimeoutMillis,
                                                        Message message,
                                                        RequestHandlerTCP requestHandler)
                                                 throws InterruptedException
Throws:
InterruptedException

expireCache

public boolean expireCache()

setDispatcherRequest

public void setDispatcherRequest(DispatcherRequest dispatcherRequest)

getDispatcherRequest

public DispatcherRequest getDispatcherRequest()


Copyright © 2011. All Rights Reserved.