Interface BroadcastMethod

All Known Implementing Classes:
AbstractBroadcastMethod, DummyBroadcastMethod, JGroupsBroadcastMethod, LoopBackBroadcastMethod, UDPBroadcastMethod, UnicastBroadcastMethod

public interface BroadcastMethod
Definition of messaging method.

A messaging is configured inside system configuration (e.g. local.properties) as follows:

 cluster.broadcast.method.<method name>=<class name>
 cluster.broadcast.methods=<method name&gt,<method name&gt,...
 

All messaging methods are managed by BroadcastService. Use BroadcastService.getBroadcastMethod(String) to access a specific one.

  • Method Details

    • init

      void init(BroadcastService service)
      Called once when the messaging method has been registered
    • shutdown

      void shutdown()
      Called before system shutdown
    • send

      void send(RawMessage message)
      Sends a raw data message to all connected hybris platform nodes
    • registerProcessor

      void registerProcessor(BroadcastMessageListener listener)
      Registers a message processor to be notified upon message received.
    • unregisterProcessor

      void unregisterProcessor(BroadcastMessageListener listener)
      Removes a registered message processor.
    • getSettings

      Map<String,String> getSettings()
      Provides generic access to method specific settings