Class BroadCastUtil

java.lang.Object
org.idempiere.broadcast.BroadCastUtil

public class BroadCastUtil extends Object
Static methods to broacast message using IMessageService.
Author:
Deepak Pansheriya
  • Field Details

  • Constructor Details

    • BroadCastUtil

      public BroadCastUtil()
  • Method Details

    • subscribe

      public static void subscribe(ITopicSubscriber<BroadCastMsg> subscriber)
      Add message subscriber
      Parameters:
      subscriber -
    • unSubscribe

      public static void unSubscribe(ITopicSubscriber<BroadCastMsg> subscriber)
      Remove message subsriber
      Parameters:
      subscriber -
    • publish

      public static boolean publish(BroadCastMsg msg)
      Publish message to IMessageService with topic TOPIC_BROADCAST_MESSAGE.
      Parameters:
      msg -
      Returns:
      true if publish successfully
    • bindMessageService

      public void bindMessageService(IMessageService messageService)
      Parameters:
      messageService -
    • unbindMessageService

      public void unbindMessageService(IMessageService messageService)
      Parameters:
      messageService -