Package org.idempiere.broadcast
Class BroadCastUtil
java.lang.Object
org.idempiere.broadcast.BroadCastUtil
Static methods to broacast message using
IMessageService
.- Author:
- Deepak Pansheriya
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
bindMessageService
(IMessageService messageService) static boolean
publish
(BroadCastMsg msg) Publish message toIMessageService
with topicTOPIC_BROADCAST_MESSAGE
.static void
subscribe
(ITopicSubscriber<BroadCastMsg> subscriber) Add message subscribervoid
unbindMessageService
(IMessageService messageService) static void
unSubscribe
(ITopicSubscriber<BroadCastMsg> subscriber) Remove message subsriber
-
Field Details
-
TOPIC_BROADCAST_MESSAGE
- See Also:
-
EVENT_BROADCAST_MESSAGE
public static final int EVENT_BROADCAST_MESSAGE- See Also:
-
EVENT_TEST_BROADCAST_MESSAGE
public static final int EVENT_TEST_BROADCAST_MESSAGE- See Also:
-
EVENT_SESSION_TIMEOUT
public static final int EVENT_SESSION_TIMEOUT- See Also:
-
EVENT_SESSION_ONNODE_TIMEOUT
public static final int EVENT_SESSION_ONNODE_TIMEOUT- See Also:
-
-
Constructor Details
-
BroadCastUtil
public BroadCastUtil()
-
-
Method Details
-
subscribe
Add message subscriber- Parameters:
subscriber
-
-
unSubscribe
Remove message subsriber- Parameters:
subscriber
-
-
publish
Publish message toIMessageService
with topicTOPIC_BROADCAST_MESSAGE
.- Parameters:
msg
-- Returns:
- true if publish successfully
-
bindMessageService
- Parameters:
messageService
-
-
unbindMessageService
- Parameters:
messageService
-
-