com.caucho.network.listen
Class AsyncController

java.lang.Object
  extended by com.caucho.network.listen.AsyncController
Direct Known Subclasses:
SocketLinkDuplexController

@Module
public class AsyncController
extends java.lang.Object

Controls a tcp connection for comet.


Constructor Summary
protected AsyncController()
          Creates a new TcpConnectionController.
 
Method Summary
 void close()
           
 void complete()
           
 long getMaxIdleTime()
           
 boolean isAsyncStarted()
           
 boolean isCometComplete()
           
 void onClose()
          Called when the connection closes.
 void setMaxIdleTime(long idleTimeout)
           
 void timeout()
           
 boolean wake()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AsyncController

protected AsyncController()
Creates a new TcpConnectionController.

Method Detail

setMaxIdleTime

public void setMaxIdleTime(long idleTimeout)

getMaxIdleTime

public long getMaxIdleTime()

wake

public boolean wake()

isCometComplete

public boolean isCometComplete()

isAsyncStarted

public boolean isAsyncStarted()

timeout

public void timeout()

complete

public void complete()

close

public void close()

onClose

public void onClose()
Called when the connection closes.