de.root1.simon
Class ProcessMessageRunnable

java.lang.Object
  extended by de.root1.simon.ProcessMessageRunnable
All Implemented Interfaces:
java.lang.Runnable

public class ProcessMessageRunnable
extends java.lang.Object
implements java.lang.Runnable

This class is feed with all kind of messages (requests/invokes and returns) and is then run on a thread pool. The message gets then processed and answered. Either ProcessMessageRunnable invokes the requested method and returns the result to the remote, or it passes the result to the dispatcher where then the requesting call is getting answered.

Author:
achr

Constructor Summary
protected ProcessMessageRunnable(Dispatcher dispatcher, org.apache.mina.core.session.IoSession session, AbstractMessage abstractMessage)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessMessageRunnable

protected ProcessMessageRunnable(Dispatcher dispatcher,
                                 org.apache.mina.core.session.IoSession session,
                                 AbstractMessage abstractMessage)
Method Detail

run

public void run()
Specified by:
run in interface java.lang.Runnable


Copyright © 2011. All Rights Reserved.