com.sun.jmx.remote.opt.internal
Class ListenerInfo
java.lang.Object
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.
ListenerInfo
public ListenerInfo(Integer listenerID,
ObjectName name,
NotificationFilter filter)
ListenerInfo
public ListenerInfo(Integer listenerID,
ObjectName name,
NotificationListener listener,
NotificationFilter filter,
Object handback,
Subject delegationSubject)
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.