org.apache.awf.io.timeout
Interface TimeoutManager

All Known Implementing Classes:
JMXDebuggableTimeoutManager

public interface TimeoutManager


Method Summary
 void addKeepAliveTimeout(SelectableChannel channel, Timeout timeout)
           
 void addTimeout(Timeout timeout)
           
 long execute()
           
 boolean hasKeepAliveTimeout(SelectableChannel channel)
           
 

Method Detail

addTimeout

void addTimeout(Timeout timeout)

addKeepAliveTimeout

void addKeepAliveTimeout(SelectableChannel channel,
                         Timeout timeout)

hasKeepAliveTimeout

boolean hasKeepAliveTimeout(SelectableChannel channel)

execute

long execute()
Returns:
the positive number (>0) in milliseconds until the deadline for the next scheduled timeout.


Copyright © 2012. All Rights Reserved.