public interface PacketProcessor
| Modifier and Type | Field and Description | 
|---|---|
static int | 
ADVISOR_MAX  | 
static int | 
DIRECTOR_MAX  | 
static int | 
OBSERVER_MAX  | 
| Modifier and Type | Method and Description | 
|---|---|
static int | 
advisor(int priority)
Returns a priority in the ADVISOR range, where processors can take early action and
 influence the packet context. 
 | 
static int | 
director(int priority)
Returns a priority in the DIRECTOR range, where processors can handle the packet. 
 | 
static int | 
observer(int priority)
Returns a priority in the OBSERVER range, where processors cannot take any action,
 but can observe what action has been taken until then. 
 | 
void | 
process(PacketContext context)
Processes the inbound packet as specified in the given context. 
 | 
static final int ADVISOR_MAX
static final int DIRECTOR_MAX
static final int OBSERVER_MAX
static int advisor(int priority)
priority - priority within ADVISOR rangestatic int director(int priority)
priority - priority within the DIRECTOR rangestatic int observer(int priority)
priority - priority within the OBSERVER rangevoid process(PacketContext context)
context - packet processing context