com.sun.grizzly
Class GrizzlyContinuation1x

java.lang.Object
  extended by com.sun.grizzly.GrizzlyContinuation1x
All Implemented Interfaces:
GrizzlyContinuation

public class GrizzlyContinuation1x
extends Object
implements GrizzlyContinuation


Constructor Summary
GrizzlyContinuation1x()
           
 
Method Summary
 Object getObject()
          Accessor for the object associated with this continuation
 void resume()
          Resume an continuation.
 void setObject(Object object)
          Accessor for the object associated with this continuation
 void suspend(long sleepTime)
          Suspend the thread for a maximum of sleepTime milliseconds
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GrizzlyContinuation1x

public GrizzlyContinuation1x()
Method Detail

suspend

public void suspend(long sleepTime)
Suspend the thread for a maximum of sleepTime milliseconds

Specified by:
suspend in interface GrizzlyContinuation
Parameters:
sleepTime - The maximum time to wait

resume

public void resume()
            throws Exception
Resume an continuation.

Specified by:
resume in interface GrizzlyContinuation
Throws:
Exception

getObject

public Object getObject()
Accessor for the object associated with this continuation

Specified by:
getObject in interface GrizzlyContinuation
Returns:
the object associated with this continuation

setObject

public void setObject(Object object)
Accessor for the object associated with this continuation

Specified by:
setObject in interface GrizzlyContinuation
Parameters:
object - the object associated with this continuation


Copyright © 2008 SUN Microsystems. All Rights Reserved.