com.vii.brillien.kernel.axiom.transport
Interface MessageProcessor<C extends Communication>

All Superinterfaces:
Runnable

public interface MessageProcessor<C extends Communication>
extends Runnable

Represents a Runnable type, which is the key part of the notification mechanism in Brillien. By receiving a new communication, a Mediator will instantiate all registered MessageProcessor type and - by a scheduling process - notifies them about the newly received communication. A Mediator - by receiving a packet - will perform the following steps: - notify all registered CommunicationListener objects - parse the packet and build up the Communication object - notify all registered MessageProcessor using a scheduling process


Method Summary
 void init(C comm)
          The actual MessageProcessor instance will be initialised by the given Communication through this method, invoked by the Mediator.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

init

void init(C comm)
The actual MessageProcessor instance will be initialised by the given Communication through this method, invoked by the Mediator. Invoked before the scheduling process.



Copyright © 2012. All Rights Reserved.