org.glassfish.grizzly.web.container
Class SuspendedResponse<A>

java.lang.Object
  extended by org.glassfish.grizzly.web.container.SuspendedResponse<A>
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
GrizzlySuspendedResponse

public class SuspendedResponse<A>
extends Object
implements Runnable

Author:
Jean-Francois Arcand

Field Summary
protected  ScheduledFuture future
           
 
Constructor Summary
SuspendedResponse(long timeout, A attachment, CompletionHandler<? super A> completionHandler, Response response)
           
 
Method Summary
protected  void doTimeout(boolean forceClose)
           
 A getAttachment()
           
 CompletionHandler<? super A> getCompletionHandler()
           
 ScheduledFuture getFuture()
           
 long getTimeout()
           
 void resume()
           
 void run()
           
 void setCompletionHandler(CompletionHandler<? super A> completionHandler)
           
 void setFuture(ScheduledFuture future)
           
 void setTimeout(long timeout)
           
 void timeout()
           
 void timeout(boolean forceClose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

future

protected ScheduledFuture future
Constructor Detail

SuspendedResponse

public SuspendedResponse(long timeout,
                         A attachment,
                         CompletionHandler<? super A> completionHandler,
                         Response response)
Method Detail

getAttachment

public A getAttachment()

getTimeout

public long getTimeout()

setTimeout

public void setTimeout(long timeout)

getCompletionHandler

public CompletionHandler<? super A> getCompletionHandler()

setCompletionHandler

public void setCompletionHandler(CompletionHandler<? super A> completionHandler)

resume

public void resume()

timeout

public void timeout()

timeout

public void timeout(boolean forceClose)

run

public void run()
Specified by:
run in interface Runnable

getFuture

public ScheduledFuture getFuture()

setFuture

public void setFuture(ScheduledFuture future)

doTimeout

protected void doTimeout(boolean forceClose)


Copyright © 2009 SUN Microsystems. All Rights Reserved.