|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface NotificationManager
Sends and receives intra- and inter-process notification messages. The scope of message delivery is determined by the implementation.
Always call close()
to ensure system resources are released and
references to listeners are removed.
Method Summary | |
---|---|
void |
addListener(NotificationListener listener)
Adds a notification listener. |
void |
close()
|
void |
removeListener(NotificationListener listener)
Removes a notification listener. |
void |
sendNotification(Notification notification,
int param1,
int param2)
Sends a Notification . |
Method Detail |
---|
void addListener(NotificationListener listener)
listener
- the listener to addvoid removeListener(NotificationListener listener)
listener
- the listener to removevoid close()
Closing a NotificationManager
flushes the send queue and removes
all listeners.
close
in interface com.microsoft.tfs.util.Closable
void sendNotification(Notification notification, int param1, int param2)
Notification
. The message may be queued before being
sent.
notification
- the notification to send (must not be null
)param1
- the first parameter to sendparam2
- the second parameter to send
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |