org.apache.awf.io.timeout
Class Timeout

java.lang.Object
  extended by org.apache.awf.io.timeout.Timeout

public class Timeout
extends Object


Constructor Summary
Timeout(long timeout, AsyncCallback cb)
           
 
Method Summary
 void cancel()
           
 AsyncCallback getCallback()
           
 long getTimeout()
           
 boolean isCancelled()
           
static Timeout newKeepAliveTimeout(IOLoop ioLoop, SelectableChannel clientChannel, long keepAliveTimeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Timeout

public Timeout(long timeout,
               AsyncCallback cb)
Method Detail

getTimeout

public long getTimeout()

cancel

public void cancel()

isCancelled

public boolean isCancelled()

getCallback

public AsyncCallback getCallback()

newKeepAliveTimeout

public static Timeout newKeepAliveTimeout(IOLoop ioLoop,
                                          SelectableChannel clientChannel,
                                          long keepAliveTimeout)


Copyright © 2012. All Rights Reserved.