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 and Description |
|---|
ListenerInfo(Integer listenerID,
ObjectName name,
NotificationFilter filter) |
ListenerInfo(Integer listenerID,
ObjectName name,
NotificationListener listener,
NotificationFilter filter,
Object handback,
Subject delegationSubject) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
Subject |
getDelegationSubject() |
Object |
getHandback() |
NotificationListener |
getListener() |
Integer |
getListenerID() |
NotificationFilter |
getNotificationFilter() |
ObjectName |
getObjectName() |
int |
hashCode() |
public ListenerInfo(Integer listenerID, ObjectName name, NotificationFilter filter)
public ListenerInfo(Integer listenerID, ObjectName name, NotificationListener listener, NotificationFilter filter, Object handback, Subject delegationSubject)
public ObjectName getObjectName()
public Integer getListenerID()
public NotificationFilter getNotificationFilter()
public NotificationListener getListener()
public Object getHandback()
public Subject getDelegationSubject()
Copyright © 2019 Terracotta, Inc.. All rights reserved.