public class TimeoutFactory extends Object
| Constructor and Description |
|---|
TimeoutFactory(FutureResponse futureResponse,
int timeoutSeconds,
List<PeerStatusListener> peerStatusListeners,
String name) |
| Modifier and Type | Method and Description |
|---|---|
io.netty.channel.ChannelHandler |
idleStateHandlerTomP2P() |
static void |
removeTimeout(io.netty.channel.ChannelHandlerContext ctx) |
io.netty.channel.ChannelHandler |
timeHandler() |
public TimeoutFactory(FutureResponse futureResponse, int timeoutSeconds, List<PeerStatusListener> peerStatusListeners, String name)
futureResponse - The future that will be called if a timeout occuredtimeoutSeconds - The time for a timeoutpeerStatusListeners - The listeners that get notified when a timeout happendpublic io.netty.channel.ChannelHandler idleStateHandlerTomP2P()
public io.netty.channel.ChannelHandler timeHandler()
public static void removeTimeout(io.netty.channel.ChannelHandlerContext ctx)
Copyright © 2014. All rights reserved.