public class AlertTopicListener extends Model<AlertTopicListener>
| Modifier and Type | Class and Description |
|---|---|
static class |
AlertTopicListener.CallBack
Alert Topic Listener call back definition.
|
| Constructor and Description |
|---|
AlertTopicListener(Id<AlertTopicListener,UUID> id,
String apId,
String name)
Construct a listener for an alert topic.
|
AlertTopicListener(String apId,
String name)
Construct a listener for an alert topic.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCallback(Set<String> topics,
URI uri)
Define the set of topicIdSet and URI to be used in alert notification.
|
String |
apId()
Returns the string associated with the application that contributed this
listener.
|
boolean |
equals(Object o) |
Set<AlertTopicListener.CallBack> |
getCallbacks()
Returns the call back definitions that have been defined for this
listener.
|
int |
hashCode() |
String |
name()
Returns the name associated with this listener.
|
getId, toStringpublic AlertTopicListener(Id<AlertTopicListener,UUID> id, String apId, String name)
id - the unique identification to useapId - the application contributing the listenername - the name for the listenerIllegalArgumentException - if either parameter is null or emptypublic AlertTopicListener(String apId, String name)
apId - the application contributing the listenername - the name for the listenerIllegalArgumentException - if either parameter is null or emptypublic void addCallback(Set<String> topics, URI uri)
topics - the topicIdSet of interesturi - the uri to post toNullPointerException - if either parameter is nullpublic String apId()
public String name()
public Set<AlertTopicListener.CallBack> getCallbacks()
public boolean equals(Object o)
equals in class AbstractModel<AlertTopicListener,UUID>public int hashCode()
hashCode in class AbstractModel<AlertTopicListener,UUID>Copyright © 2014. All Rights Reserved.