Package de.elo.ix.client
Interface EventBusApi.Bus
- Enclosing interface:
- EventBusApi
public static interface EventBusApi.Bus
-
Method Summary
Modifier and TypeMethodDescriptionlong
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
addListener
(EventFilter filter) long
addListener
(EventFilter[] filters) Add an event listener with the given filters.long
addListener
(EventListener eventListener) void
close()
Close event bus.void
deleteListener
(long lsnId) Deletes an event bus listenerlong
getId()
void
release()
Delete all listeners from this event bus.send
(long eventType) Send an event of the given type.Send an event of the given type with the supplied event ID and object as event data.Send an event of the given type with the supplied object as event data.Send the given events.
-
Method Details
-
send
Send an event of the given type. -
send
Send an event of the given type with the supplied object as event data. -
send
Send an event of the given type with the supplied event ID and object as event data. -
send
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
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
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
- Throws:
byps.RemoteException
-
addListener
Add an event listener with the given filters.- Parameters:
filters
- Event filters- Returns:
- Listener ID
- Throws:
byps.RemoteException
-
addListener
- 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.RemoteExceptionDelete 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.RemoteExceptionClose 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()
-