|
2008-02-07 1.1.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 long |
BroadcastThreshold
Define the broadcast threshold (long) 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. |
static java.lang.String |
NOTIFICATION_BROADCAST_THRESHOLD_DEFAULT
Define the notification broadcast threshold default (String) constant. |
static java.lang.String |
NOTIFICATION_BROADCAST_THRESHOLD_KEY
Define the notification broadcast threshold key (String) constant. |
static java.lang.String |
NOTIFICATION_NOTIFY_THRESHOLD_DEFAULT
Define the notification notify threshold default (String) constant. |
static java.lang.String |
NOTIFICATION_NOTIFY_THRESHOLD_KEY
Define the notification notify threshold key (String) constant. |
protected static long |
NotifyThreshold
Define the notify threshold (long) 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. |
| Constructor Summary | |
|---|---|
Notification()
Constructs an instance of this class. |
|
| Method Summary | |
|---|---|
void |
broadcast(java.lang.String key,
java.util.Dictionary value)
|
static NotificationService |
createBroker()
Create broker and return the NotificationService result. |
void |
exit()
Exit. |
static long |
getBroadcastThreshold()
Gets the broadcast threshold (long) value. |
static long |
getBroadcastThresholdDefault()
Gets the broadcast threshold default (long) value. |
static NotificationService |
getBroker()
Gets the broker (NotificationService) value. |
static java.lang.String |
getExternalKey(java.lang.String prefix,
java.lang.String key)
|
static java.lang.String[] |
getExternalKeys(java.lang.String prefix,
java.lang.String[] keys)
|
NotificationQueue |
getInformationBroker()
Returns the informationBroker. |
static long |
getNotifyThreshold()
Gets the notify threshold (long) value. |
static long |
getNotifyThresholdDefault()
Gets the notify threshold default (long) value. |
void |
notify(NotificationListener notificationListener,
java.lang.String topic,
java.util.Dictionary data)
Notify with the specified notification listener, topic and data parameters. |
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. |
static void |
setBroadcastThreshold(long broadcastThreshold)
|
static void |
setNotifyThreshold(long threshold)
|
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 |
|---|
public static final java.lang.String NOTIFICATION_NOTIFY_THRESHOLD_KEY
public static final java.lang.String NOTIFICATION_NOTIFY_THRESHOLD_DEFAULT
public static final java.lang.String NOTIFICATION_BROADCAST_THRESHOLD_KEY
public static final java.lang.String NOTIFICATION_BROADCAST_THRESHOLD_DEFAULT
protected static final NotificationService Broker
protected static long NotifyThreshold
protected static long BroadcastThreshold
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 long getBroadcastThreshold()
long) value.setBroadcastThreshold(long)public static long getBroadcastThresholdDefault()
long) value.public static NotificationService getBroker()
NotificationService) value.createBroker(),
getInformationBroker()
public static java.lang.String getExternalKey(java.lang.String prefix,
java.lang.String key)
prefix - The prefix (String) parameter.key - The key (String) parameter.
String) value.
The prefix (String) parameter.
The key (String) parameter.
public static java.lang.String[] getExternalKeys(java.lang.String prefix,
java.lang.String[] keys)
prefix - The prefix (String) parameter.keys - The keys (String[]) parameter.
String[])
value.
The prefix (String) parameter.
The keys (String[]) parameter.public static long getNotifyThreshold()
long) value.setNotifyThreshold(long)public static long getNotifyThresholdDefault()
long) value.public static void setBroadcastThreshold(long broadcastThreshold)
broadcastThreshold - The broadcast threshold (long) parameter.getBroadcastThreshold()public static void setNotifyThreshold(long threshold)
threshold - The threshold (long) parameter.getNotifyThreshold()
public void broadcast(java.lang.String key,
java.util.Dictionary value)
broadcast in interface NotificationServicekey - The key (String) parameter.value - The value (Dictionary) parameter.public void exit()
public NotificationQueue getInformationBroker()
NotificationQueue)
value.
public void notify(NotificationListener notificationListener,
java.lang.String topic,
java.util.Dictionary data)
notificationListener - The notification listener (NotificationListener) parameter.topic - The topic (String) parameter.data - The data (Dictionary) parameter.
public void register(java.lang.String subscription,
NotificationListener listener)
String) parameter. The listener (NotificationListener)
parameter. The subscription (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.
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.
The listener (NotificationListener)
parameter.
unregister in interface NotificationServicelistener - The listener (NotificationListener) parameter.
|
2008-02-07 1.1.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||