org.glassfish.grizzly
Class ProcessorResult

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

public class ProcessorResult
extends 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 createCompleteLeave()
           
static ProcessorResult createError()
           
static ProcessorResult createError(Object description)
           
static ProcessorResult createNotRun()
           
static ProcessorResult createReregister()
           
static ProcessorResult createRerun(Context context)
           
static ProcessorResult createTerminate()
           
 Object getContext()
          Get the ProcessorResult context.
 ProcessorResult.Status getStatus()
          Get the result status.
 void recycle()
           
protected  ProcessorResult setContext(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()

createCompleteLeave

public static ProcessorResult createCompleteLeave()

createReregister

public static ProcessorResult createReregister()

createError

public static ProcessorResult createError()

createError

public static ProcessorResult createError(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)

getContext

public Object getContext()
Get the ProcessorResult context.

Returns:
the ProcessorResult context.

setContext

protected ProcessorResult setContext(Object context)

recycle

public void recycle()


Copyright © 2011 Oracle Corpration. All Rights Reserved.