|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.notification.Notification
public class Notification
| Field Summary | |
|---|---|
protected java.util.Hashtable |
beginTopicListeners
Define the begin topic listeners (Hashtable) field. |
protected static NotificationService |
Broker
Define the broker (NotificationService) constant. |
protected java.util.Hashtable |
endTopicListeners
Define the end topic listeners (Hashtable) field. |
protected NotificationListener |
globalTopicListeners
Define the global topic listeners (NotificationListener) field. |
protected NotificationQueue |
queue
Define the information broker (InformationBrokerService) field. |
protected java.lang.Thread |
thread
Define the thread (Thread) field. |
protected java.util.Hashtable |
topicListeners
Define the record (Hashtable) field. |
| Fields inherited from interface org.eclipse.soda.dk.notification.service.NotificationService |
|---|
ERROR_EXTERNAL_KEY, EXCEPTION_DATA_KEY, EXECUTE_EXTERNAL_KEY, FACTORY_SERVICE_NAME, GET_EXTERNAL_KEY, MESSAGE_DATA_KEY, READ_EXTERNAL_KEY, SERVICE_NAME, SET_EXTERNAL_KEY, TIMESTAMP_DATA_KEY, TOPIC_DELIMITER, TOPIC_DELIMITER_STRING, TOPIC_WILDCARD, TOPIC_WILDCARD_STRING, TRIGGER_EXTERNAL_KEY, VALUE_DATA_KEY, VALUE_OLD_DATA_KEY, WRITE_EXTERNAL_KEY |
| Constructor Summary | |
|---|---|
Notification()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
void |
broadcast(java.lang.String key,
java.util.Dictionary value)
Broadcast with the specified key and value parameters. |
static NotificationService |
createBroker()
Create broker and return the NotificationService result. |
void |
exit()
Exit. |
static NotificationService |
getBroker()
Gets the broker (NotificationService) value. |
static java.lang.String |
getExternalKey(java.lang.String prefix,
java.lang.String key)
Get external key with the specified prefix and key parameters and return the String result. |
static java.lang.String[] |
getExternalKeys(java.lang.String prefix,
java.lang.String[] keys)
Get external keys with the specified prefix and keys parameters and return the String[] result. |
NotificationQueue |
getInformationBroker()
Returns the informationBroker. |
void |
register(java.lang.String[] subscriptions,
NotificationListener listener)
Subscribe with the specified subscriptions and listener parameters. |
void |
register(java.lang.String subscription,
NotificationListener listener)
Subscribe with the specified subscription and listener parameters. |
void |
run()
Run. |
void |
start()
Start |
void |
stop()
Stop. |
java.lang.String |
toString()
Returns the string value. |
void |
unregister(NotificationListener listener)
Unsubscribe with the specified listener parameter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final NotificationService Broker
protected NotificationQueue queue
protected java.lang.Thread thread
protected java.util.Hashtable topicListeners
protected java.util.Hashtable beginTopicListeners
protected java.util.Hashtable endTopicListeners
protected NotificationListener globalTopicListeners
| Constructor Detail |
|---|
public Notification()
| Method Detail |
|---|
public static NotificationService createBroker()
NotificationService)
value.getBroker(),
getInformationBroker()public static NotificationService getBroker()
NotificationService) value.createBroker(),
getInformationBroker()
public static java.lang.String getExternalKey(java.lang.String prefix,
java.lang.String key)
String) parameter. The
key (String) parameter.
prefix - The prefix (String) parameter.key - The key (String) parameter.
String) value.
public static java.lang.String[] getExternalKeys(java.lang.String prefix,
java.lang.String[] keys)
String) parameter.
The keys (String[]) parameter.
prefix - The prefix (String) parameter.keys - The keys (String[]) parameter.
String[])
value.
public void broadcast(java.lang.String key,
java.util.Dictionary value)
String)
parameter. The value (Dictionary) parameter.
broadcast in interface NotificationServicekey - The key (String) parameter.value - The value (Dictionary) parameter.public void exit()
public NotificationQueue getInformationBroker()
NotificationQueue)
value.
public void register(java.lang.String subscription,
NotificationListener listener)
String) parameter. The listener (NotificationListener)
parameter. The subscription (String) parameter. The
listener (NotificationListener) parameter.
register in interface NotificationServicesubscription - The subscription (String) parameter.listener - The listener (NotificationListener) parameter.register(String[],NotificationListener)
public void register(java.lang.String[] subscriptions,
NotificationListener listener)
String[]) parameter. The listener (NotificationListener)
parameter. The subscriptions (String[]) parameter. The
listener (NotificationListener) parameter.
register in interface NotificationServicesubscriptions - The subscriptions (String[]) parameter.listener - The listener (NotificationListener) parameter.register(String,NotificationListener)public void run()
run in interface java.lang.Runnablepublic void start()
public void stop()
public java.lang.String toString()
toString in class java.lang.ObjectString) value.public void unregister(NotificationListener listener)
NotificationListener)
parameter. The listener (NotificationListener)
parameter.
unregister in interface NotificationServicelistener - The listener (NotificationListener) parameter.
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||