org.jboss.mx.remoting.rmi
Class ClientListenerHolder

java.lang.Object
  extended by org.jboss.mx.remoting.rmi.ClientListenerHolder

public class ClientListenerHolder
extends Object

This is a holder for the listener and related information to be stored on the client side for when notifications are received from the server. This will help in making sure the correct information is supplied back to original listener when calling to handle notifications.

Author:
Tom Elrod

Constructor Summary
ClientListenerHolder(ObjectName objectName, NotificationListener listener, NotificationFilter filter, Object handback)
           
 
Method Summary
 boolean equals(Object obj)
          Will check to see object passed is a ClientListenerHolder and
 NotificationFilter getFilter()
           
 boolean getFilterOnClient()
           
 Object getHandback()
           
 NotificationListener getListener()
           
 ObjectName getObjectName()
           
 int hashCode()
          returns the the hashcode based on target mbean, filter, and handback.
 void setFilterOnClient(boolean shouldFilterOnClient)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientListenerHolder

public ClientListenerHolder(ObjectName objectName,
                            NotificationListener listener,
                            NotificationFilter filter,
                            Object handback)
Method Detail

hashCode

public int hashCode()
returns the the hashcode based on target mbean, filter, and handback.

Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Will check to see object passed is a ClientListenerHolder and

Overrides:
equals in class Object

getListener

public NotificationListener getListener()

getFilter

public NotificationFilter getFilter()

getHandback

public Object getHandback()

getObjectName

public ObjectName getObjectName()

setFilterOnClient

public void setFilterOnClient(boolean shouldFilterOnClient)

getFilterOnClient

public boolean getFilterOnClient()


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.