org.jboss.jms.client.remoting
Class CallbackManager

java.lang.Object
  extended byorg.jboss.jms.client.remoting.CallbackManager

public class CallbackManager
extends java.lang.Object

The CallbackManager is an InvocationHandler used for handling callbacks to message consumers. The callback is received and dispatched off to the relevant consumer. There is one instance of this class per remoting connection - which is to a unique server - therefore there is no need to add the server id to the key when doing look ups.

Version:
$Revision: 2507 $ $Id: CallbackManager.java 2507 2007-02-28 23:46:51Z timfox $
Author:
Tim Fox, Ovidiu Feodorov

Field Summary
protected  java.util.Map callbackHandlers
           
protected  ConnectionFactoryCallbackHandler connectionfactoryCallbackHandler
           
static java.lang.String JMS_CALLBACK_SUBSYSTEM
           
protected static CallbackManager theManager
           
 
Constructor Summary
CallbackManager()
           
 
Method Summary
 void handleCallback(Callback callback)
           
 void registerHandler(int consumerID, MessageCallbackHandler handler)
           
 void setConnectionDelegate(ClientConnectionDelegate connectionDelegate)
           
 java.lang.String toString()
           
 MessageCallbackHandler unregisterHandler(int consumerID)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

JMS_CALLBACK_SUBSYSTEM

public static final java.lang.String JMS_CALLBACK_SUBSYSTEM
See Also:
Constant Field Values

theManager

protected static CallbackManager theManager

callbackHandlers

protected java.util.Map callbackHandlers

connectionfactoryCallbackHandler

protected ConnectionFactoryCallbackHandler connectionfactoryCallbackHandler
Constructor Detail

CallbackManager

public CallbackManager()
Method Detail

handleCallback

public void handleCallback(Callback callback)
                    throws HandleCallbackException
Throws:
HandleCallbackException

registerHandler

public void registerHandler(int consumerID,
                            MessageCallbackHandler handler)

setConnectionDelegate

public void setConnectionDelegate(ClientConnectionDelegate connectionDelegate)

unregisterHandler

public MessageCallbackHandler unregisterHandler(int consumerID)

toString

public java.lang.String toString()


Copyright © 2006 JBoss Inc. All Rights Reserved.