com.sun.jmx.remote.opt.internal
Class ListenerInfo

java.lang.Object
  extended by com.sun.jmx.remote.opt.internal.ListenerInfo
Direct Known Subclasses:
ClientListenerInfo

public class ListenerInfo
extends Object

An identified listener. A listener has an Integer id that is unique per connector server. It selects notifications based on the ObjectName of the originator and an optional NotificationFilter.

Two ListenerInfo objects are considered equal if and only if they have the same listenerId. This means that ListenerInfo objects can be stored in a Set or Map and retrieved using another ListenerInfo with the same listenerId but arbitrary ObjectNme and NotificationFilter values.


Constructor Summary
ListenerInfo(Integer listenerID, ObjectName name, NotificationFilter filter)
           
ListenerInfo(Integer listenerID, ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback, Subject delegationSubject)
           
 
Method Summary
 boolean equals(Object o)
           
 Subject getDelegationSubject()
           
 Object getHandback()
           
 NotificationListener getListener()
           
 Integer getListenerID()
           
 NotificationFilter getNotificationFilter()
           
 ObjectName getObjectName()
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListenerInfo

public ListenerInfo(Integer listenerID,
                    ObjectName name,
                    NotificationFilter filter)

ListenerInfo

public ListenerInfo(Integer listenerID,
                    ObjectName name,
                    NotificationListener listener,
                    NotificationFilter filter,
                    Object handback,
                    Subject delegationSubject)
Method Detail

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getObjectName

public ObjectName getObjectName()

getListenerID

public Integer getListenerID()

getNotificationFilter

public NotificationFilter getNotificationFilter()

getListener

public NotificationListener getListener()

getHandback

public Object getHandback()

getDelegationSubject

public Subject getDelegationSubject()


Copyright © 2014 Terracotta, Inc.. All rights reserved.