org.jboss.messaging.core.remoting.impl.mina
Class MinaHandler

java.lang.Object
  extended by org.apache.mina.common.IoHandlerAdapter
      extended by org.jboss.messaging.core.remoting.impl.mina.MinaHandler
All Implemented Interfaces:
org.apache.mina.common.IoHandler, PacketHandlerRegistrationListener

public class MinaHandler
extends org.apache.mina.common.IoHandlerAdapter
implements PacketHandlerRegistrationListener

Version:
$Revision$
Author:
Jeff Mesnil, Tim Fox

Constructor Summary
MinaHandler(PacketDispatcher dispatcher, java.util.concurrent.ExecutorService executorService, CleanUpNotifier failureNotifier, boolean closeSessionOnExceptionCaught, boolean useExecutor, long blockTimeout, long bytesLow, long bytesHigh)
           
 
Method Summary
 void exceptionCaught(org.apache.mina.common.IoSession session, java.lang.Throwable cause)
           
 void handlerRegistered(long handlerID)
           
 void handlerUnregistered(long handlerID)
           
 void messageReceived(org.apache.mina.common.IoSession session, java.lang.Object message)
           
 
Methods inherited from class org.apache.mina.common.IoHandlerAdapter
messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpened
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MinaHandler

public MinaHandler(PacketDispatcher dispatcher,
                   java.util.concurrent.ExecutorService executorService,
                   CleanUpNotifier failureNotifier,
                   boolean closeSessionOnExceptionCaught,
                   boolean useExecutor,
                   long blockTimeout,
                   long bytesLow,
                   long bytesHigh)
Method Detail

handlerRegistered

public void handlerRegistered(long handlerID)
Specified by:
handlerRegistered in interface PacketHandlerRegistrationListener

handlerUnregistered

public void handlerUnregistered(long handlerID)
Specified by:
handlerUnregistered in interface PacketHandlerRegistrationListener

exceptionCaught

public void exceptionCaught(org.apache.mina.common.IoSession session,
                            java.lang.Throwable cause)
                     throws java.lang.Exception
Specified by:
exceptionCaught in interface org.apache.mina.common.IoHandler
Overrides:
exceptionCaught in class org.apache.mina.common.IoHandlerAdapter
Throws:
java.lang.Exception

messageReceived

public void messageReceived(org.apache.mina.common.IoSession session,
                            java.lang.Object message)
                     throws java.lang.Exception
Specified by:
messageReceived in interface org.apache.mina.common.IoHandler
Overrides:
messageReceived in class org.apache.mina.common.IoHandlerAdapter
Throws:
java.lang.Exception


Copyright © 2006 JBoss Inc. All Rights Reserved.