Package de.hybris.platform.cluster
Interface BroadcastMethod
-
- All Known Implementing Classes:
AbstractBroadcastMethod,DummyBroadcastMethod,JGroupsBroadcastMethod,LoopBackBroadcastMethod,UDPBroadcastMethod,UnicastBroadcastMethod
public interface BroadcastMethodDefinition 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>,<method name>,...
All messaging methods are managed by
BroadcastService. UseBroadcastService.getBroadcastMethod(String)to access a specific one.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>getSettings()Provides generic access to method specific settingsvoidinit(BroadcastService service)Called once when the messaging method has been registeredvoidregisterProcessor(BroadcastMessageListener listener)Registers a message processor to be notified upon message received.voidsend(RawMessage message)Sends a raw data message to all connected hybris platform nodesvoidshutdown()Called before system shutdownvoidunregisterProcessor(BroadcastMessageListener listener)Removes a registered message processor.
-
-
-
Method Detail
-
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
java.util.Map<java.lang.String,java.lang.String> getSettings()
Provides generic access to method specific settings
-
-