Package org.eclnt.jsfserver.messages
Class DialogMessageBus
java.lang.Object
org.eclnt.jsfserver.messages.DialogMessageBus
Messaging within one dialog session. The messages are any objects that are
published by
Used for informing different areas on the screen about events - without requiring a drill down of the events from the parent area to the child areas.
publishMessage(Object)
to listeners implementing
IDialogMessageBusListener
.Used for informing different areas on the screen about events - without requiring a drill down of the events from the parent area to the child areas.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoid
addListener
(IDialogMessageBusListener listener) void
destroy()
Explicit id that is checked if a cluster message is received for checking if a message is relevant for a receiver or not.static DialogMessageBus
instance()
static DialogMessageBus
instance
(boolean createIfNotExists) static DialogMessageBus
instance
(javax.servlet.http.HttpSession httpSession, ISessionAbstraction dialogSession, boolean createIfNotExists) protected void
processClusterMessage
(String topic, String message) protected void
This method is always called in the UI thread.void
publishMessage
(Object message) Publish message within the current dialog session "only".void
Publish message within the current dialog session AND within other dialogs that belong to the same client.void
removeListener
(IDialogMessageBusListener listenerToRemove) void
setExplicitClusterClientId
(String explicitClusterClientId)
-
Method Details
-
instance
-
instance
-
instance
public static DialogMessageBus instance(javax.servlet.http.HttpSession httpSession, ISessionAbstraction dialogSession, boolean createIfNotExists) -
addListener
-
removeListener
-
publishMessage
Publish message within the current dialog session "only". The event is executed immediately. -
publishMessageToAllClientDialogs
Publish message within the current dialog session AND within other dialogs that belong to the same client. The event is executed immediately within the current dialog - and is executed asynchronously in the other dialogs. -
getExplicitClusterClientId
Explicit id that is checked if a cluster message is received for checking if a message is relevant for a receiver or not. -
setExplicitClusterClientId
-
destroy
public void destroy() -
processMessageQueue
protected void processMessageQueue()This method is always called in the UI thread. -
processClusterMessage
-