org.glassfish.grizzly
Class ProcessorResult

java.lang.Object
  extended by org.glassfish.grizzly.ProcessorResult

public class ProcessorResult
extends java.lang.Object

The interface represents the result of Processor execution.

Author:
Alexey Stashok

Nested Class Summary
static class ProcessorResult.Status
          Enumeration represents the status/code of ProcessorResult.
 
Method Summary
static ProcessorResult createComplete()
           
static ProcessorResult createComplete(java.lang.Object data)
           
static ProcessorResult createError()
           
static ProcessorResult createError(java.lang.Object description)
           
static ProcessorResult createLeave()
           
static ProcessorResult createNotRun()
           
static ProcessorResult createReregister(Context context)
           
static ProcessorResult createRerun(Context context)
           
static ProcessorResult createTerminate()
           
 java.lang.Object getData()
          Get the ProcessorResult extra data.
 ProcessorResult.Status getStatus()
          Get the result status.
protected  ProcessorResult setData(java.lang.Object context)
           
protected  ProcessorResult setStatus(ProcessorResult.Status status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createComplete

public static ProcessorResult createComplete()

createComplete

public static ProcessorResult createComplete(java.lang.Object data)

createLeave

public static ProcessorResult createLeave()

createReregister

public static ProcessorResult createReregister(Context context)

createError

public static ProcessorResult createError()

createError

public static ProcessorResult createError(java.lang.Object description)

createRerun

public static ProcessorResult createRerun(Context context)

createTerminate

public static ProcessorResult createTerminate()

createNotRun

public static ProcessorResult createNotRun()

getStatus

public ProcessorResult.Status getStatus()
Get the result status.

Returns:
the result status.

setStatus

protected ProcessorResult setStatus(ProcessorResult.Status status)

getData

public java.lang.Object getData()
Get the ProcessorResult extra data.

Returns:
the ProcessorResult extra data.

setData

protected ProcessorResult setData(java.lang.Object context)


Copyright © 2012 Oracle Corporation. All Rights Reserved.