com.sun.grizzly
Interface GrizzlyContinuation

All Known Implementing Classes:
GrizzlyContinuation1x

public interface GrizzlyContinuation

Simple Continuation interface.

Author:
Jeanfrancois Arcand

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 connection for a maximum of sleepTime milliseconds
 

Method Detail

suspend

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

Parameters:
sleepTime - The maximum time to wait

resume

void resume()
            throws Exception
Resume an continuation.

Throws:
Exception

getObject

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

Returns:
the object associated with this continuation

setObject

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

Parameters:
object - the object associated with this continuation


Copyright © 2011 SUN Microsystems. All Rights Reserved.