net.tomp2p.connection
Class TCPChannelCache
java.lang.Object
net.tomp2p.connection.TCPChannelCache
public class TCPChannelCache
- extends Object
|
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 |
DEFAULT_CHANNEL_NAME
public static final String DEFAULT_CHANNEL_NAME
- See Also:
- Constant Field Values
TCPChannelCache
public TCPChannelCache(ConnectionCollector connectionCollector,
org.jboss.netty.util.Timer timer,
org.jboss.netty.channel.group.ChannelGroup channelGroup)
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.