|
VisiBroker for Java |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EventQueueManagerOperations
EventQueueManager is a singleton, with which application code registers,
unregisters and retrieves event listeners. Application code is supposed
to bootstrap this singleton as follows,
try {
InterceptorManagerControl control =
InterceptorManagerControlHelper.narrow (
orb.resolve_initial_references( "VisiBrokerInterceptorControl")
);
EventQueueManager queue_manager =
(EventQueueManager) control.get_manager( "EventQueue");
queue_manager.register_listener (
new MyConnEventListener(),
EventType.CONN_EVENT_TYPE
);
}
catch( Exception e) {
...
}
EventListener
,
EventType
,
ConnEventListener
Method Summary | |
---|---|
EventListener[] |
get_listeners(EventType type)
This method retrieves all listeners listening to the specified EventType. |
void |
register_listener(EventListener listener,
EventType type)
This method registers a listener for listening to a specified EventType. |
void |
unregister_listener(EventListener listener,
EventType type)
This method unregisters the specified listener from listening to the specified EventType. |
Method Detail |
---|
EventListener[] get_listeners(EventType type)
type
- The EventType, the listeners are listening to.void unregister_listener(EventListener listener, EventType type)
listener
- The EventListener to be unregistered.type
- The EventType, the specified listener to be stoped
listening to.void register_listener(EventListener listener, EventType type)
listener
- The EventListener to be registered.type
- The EventType, the listener is interested in listening to.
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |