com.sun.grizzly.http
Class TaskEvent<E>

java.lang.Object
  extended by com.sun.grizzly.http.TaskEvent<E>

public class TaskEvent<E>
extends Object

Sample event object used by instance of TaskListener to share status information about where they are when processing a request.

Author:
Jean-Francois Arcand

Field Summary
static int COMPLETED
           
static int CONTINUE
           
protected  E ctx
          The associated TaskContext instance.
static int ERROR
           
static int START
           
static int START_ASYNCHRONOUS
           
 
Constructor Summary
TaskEvent()
          Create an empty instance.
TaskEvent(E ctx)
          Create an instance and associated the TaskContext object.
 
Method Summary
 void attach(E ctx)
          Set TaskContext instance.
 E attachement()
          Return the TaskContext instance.
 int getStatus()
           
 void setStatus(int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

START

public static final int START
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values

COMPLETED

public static final int COMPLETED
See Also:
Constant Field Values

CONTINUE

public static final int CONTINUE
See Also:
Constant Field Values

START_ASYNCHRONOUS

public static final int START_ASYNCHRONOUS
See Also:
Constant Field Values

ctx

protected E ctx
The associated TaskContext instance. Can be null.

Constructor Detail

TaskEvent

public TaskEvent(E ctx)
Create an instance and associated the TaskContext object.


TaskEvent

public TaskEvent()
Create an empty instance.

Method Detail

getStatus

public int getStatus()

setStatus

public void setStatus(int status)

attach

public void attach(E ctx)
Set TaskContext instance. Can be null.


attachement

public E attachement()
Return the TaskContext instance. Can be null.



Copyright © 2010 SUN Microsystems. All Rights Reserved.