Interface EventBusApi.Bus

Enclosing interface:
EventBusApi

public static interface EventBusApi.Bus
  • Method Summary

    Modifier and Type
    Method
    Description
    long
    addListener(long eventType)
    Add an event listener for events of the given type.
    long
    addListener(long[] eventTypes)
    Add an event listener for events of the given types.
    long
    addListener(long eventType, long param1)
    Add an event listener for events of the given type.
    long
    addListener(long eventType, long param1, String param2)
    Add an event listener for events of the given type.
    long
    addListener(long eventType, String param2)
    Add an event listener for events of the given type.
    long
     
    long
    Add an event listener with the given filters.
    long
    addListener(EventListener eventListener)
     
    void
    Close event bus.
    void
    deleteListener(long lsnId)
    Deletes an event bus listener
    long
     
    void
    Delete all listeners from this event bus.
    send(long eventType)
    Send an event of the given type.
    send(long eventType, long eventId, Object data)
    Send an event of the given type with the supplied event ID and object as event data.
    send(long eventType, Object data)
    Send an event of the given type with the supplied object as event data.
    send(Event[] events)
    Send the given events.
  • Method Details

    • send

      EventBusApi.Bus send(long eventType) throws byps.RemoteException
      Send an event of the given type.
      Parameters:
      eventType - Event type, one of the constants EventBusC.EVENT_TYPE*.
      Returns:
      this object
      Throws:
      byps.RemoteException
      See Also:
    • send

      EventBusApi.Bus send(long eventType, Object data) throws byps.RemoteException
      Send an event of the given type with the supplied object as event data.
      Parameters:
      eventType - Event type, one of the constants EventBusC.EVENT_TYPE*.
      data - Object passed to Event.any
      Returns:
      this object
      Throws:
      byps.RemoteException
      See Also:
    • send

      EventBusApi.Bus send(long eventType, long eventId, Object data) throws byps.RemoteException
      Send an event of the given type with the supplied event ID and object as event data.
      Parameters:
      eventType - Event type, one of the constants EventBusC.EVENT_TYPE*.
      eventId - Event ID
      data - Object passed to Event.any
      Returns:
      this object
      Throws:
      byps.RemoteException
      See Also:
    • send

      EventBusApi.Bus send(Event[] events) throws byps.RemoteException
      Send the given events. The function sets the member busId of the Event objects to the ID of this bus.
      Parameters:
      events - Events to be sent.
      Returns:
      this object
      Throws:
      byps.RemoteException
    • addListener

      long addListener(long eventType) throws byps.RemoteException
      Add an event listener for events of the given type.
      Parameters:
      eventType - Event type, one of the constants EventBusC.EVENT_TYPE* or an application defined event type.
      Returns:
      Listener ID
      Throws:
      byps.RemoteException
      See Also:
    • addListener

      long addListener(long eventType, long param1) throws byps.RemoteException
      Add an event listener for events of the given type.
      Parameters:
      eventType - Event type, one of the constants EventBusC.EVENT_TYPE* or an application defined event type.
      param1 - Event param1.
      Returns:
      Listener ID
      Throws:
      byps.RemoteException
      See Also:
    • addListener

      long addListener(long eventType, String param2) throws byps.RemoteException
      Add an event listener for events of the given type.
      Parameters:
      eventType - Event type, one of the constants EventBusC.EVENT_TYPE* or an application defined event type.
      param2 - Event param2.
      Returns:
      Listener ID
      Throws:
      byps.RemoteException
      See Also:
    • addListener

      long addListener(long eventType, long param1, String param2) throws byps.RemoteException
      Add an event listener for events of the given type.
      Parameters:
      eventType - Event type, one of the constants EventBusC.EVENT_TYPE* or an application defined event type.
      param1 - Event param1.
      param2 - Event param2.
      Returns:
      Listener ID
      Throws:
      byps.RemoteException
      See Also:
    • addListener

      long addListener(long[] eventTypes) throws byps.RemoteException
      Add an event listener for events of the given types.
      Parameters:
      eventTypes - Event types.
      Returns:
      Listener ID
      Throws:
      byps.RemoteException
      See Also:
    • addListener

      long addListener(EventFilter filter) throws byps.RemoteException
      Throws:
      byps.RemoteException
    • addListener

      long addListener(EventFilter[] filters) throws byps.RemoteException
      Add an event listener with the given filters.
      Parameters:
      filters - Event filters
      Returns:
      Listener ID
      Throws:
      byps.RemoteException
    • addListener

      long addListener(EventListener eventListener) throws byps.RemoteException
      Throws:
      byps.RemoteException
    • deleteListener

      void deleteListener(long lsnId) throws byps.RemoteException
      Deletes an event bus listener
      Parameters:
      lsnId - Listener ID
      Throws:
      byps.RemoteException
    • release

      void release() throws byps.RemoteException
      Delete all listeners from this event bus. Call this function, if the Bus object is no longer needed by this application. Other applications can use the bus furtheron.
      Throws:
      byps.RemoteException
    • close

      void close() throws byps.RemoteException
      Close event bus. Call this function, if the Bus object is no longer needed by this and other applications. This function internally calls release() to delete all listeners from the bus.
      Throws:
      byps.RemoteException
    • getId

      long getId()