VisiBroker for Java

com.inprise.vbroker.EventQueue
Interface EventQueueManagerOperations

All Superinterfaces:
IDLEntity, InterceptorManager, java.io.Serializable
All Known Subinterfaces:
EventQueueManager

public interface EventQueueManagerOperations
extends InterceptorManager

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) {
        ...
      }
    

See Also:
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

get_listeners

EventListener[] get_listeners(EventType type)
This method retrieves all listeners listening to the specified EventType.

Parameters:
type - The EventType, the listeners are listening to.

unregister_listener

void unregister_listener(EventListener listener,
                         EventType type)
This method unregisters the specified listener from listening to the specified EventType.

Parameters:
listener - The EventListener to be unregistered.
type - The EventType, the specified listener to be stoped listening to.

register_listener

void register_listener(EventListener listener,
                       EventType type)
This method registers a listener for listening to a specified EventType.

Parameters:
listener - The EventListener to be registered.
type - The EventType, the listener is interested in listening to.

Borland Software Corporation
http://www.borland.com
100 Enterprise Way
Scotts Valley, CA 95066
Voice: (831) 431-1000
pubsweb@borland.com

Read the latest documentation online