com.sun.grizzly
Class AbstractProcessor<E extends Context>
java.lang.Object
com.sun.grizzly.AbstractProcessor<E>
- All Implemented Interfaces:
- Processor<E>
- Direct Known Subclasses:
- AbstractCallbackHandler, StandaloneProcessor, TCPNIOConnectorHandler.ConnectorEventProcessor, TCPNIOServerConnection.AcceptorEventProcessor
public abstract class AbstractProcessor<E extends Context>
- extends Object
- implements Processor<E>
Abstract Processor interface implementation.
- Author:
- Alexey Stashok
|
Method Summary |
void |
afterProcess(E context)
Method will be called by framework after Processor execution,
so it can release associated resources. |
void |
beforeProcess(E context)
Method will be called by framework before executing
this Processor. |
E |
context()
Returning null, means that core is responsible to create the
processing Context itself. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractProcessor
public AbstractProcessor()
context
public E context()
- Returning null, means that core is responsible to create the
processing
Context itself.
- Specified by:
context in interface Processor<E extends Context>
- Returns:
- null
beforeProcess
public void beforeProcess(E context)
throws IOException
- Description copied from interface:
Processor
- Method will be called by framework before executing
this
Processor.
- Specified by:
beforeProcess in interface Processor<E extends Context>
- Parameters:
context - processing context
- Throws:
IOException
afterProcess
public void afterProcess(E context)
throws IOException
- Description copied from interface:
Processor
- Method will be called by framework after
Processor execution,
so it can release associated resources.
- Specified by:
afterProcess in interface Processor<E extends Context>
- Parameters:
context - processing context
- Throws:
IOException
Copyright © 2009 SUN Microsystems. All Rights Reserved.