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 TypeMethodDescriptionvoidaddListener(IDialogMessageBusListener listener) voiddestroy()Explicit id that is checked if a cluster message is received for checking if a message is relevant for a receiver or not.static DialogMessageBusinstance()static DialogMessageBusinstance(boolean createIfNotExists) static DialogMessageBusinstance(jakarta.servlet.http.HttpSession httpSession, ISessionAbstraction dialogSession, boolean createIfNotExists) protected voidprocessClusterMessage(String topic, String message) protected voidThis method is always called in the UI thread.voidpublishMessage(Object message) Publish message within the current dialog session "only".voidPublish message within the current dialog session AND within other dialogs that belong to the same client.voidremoveListener(IDialogMessageBusListener listenerToRemove) voidsetExplicitClusterClientId(String explicitClusterClientId)
-
Method Details
-
instance
-
instance
-
instance
public static DialogMessageBus instance(jakarta.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
-