Package de.hybris.platform.cluster
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>,<method name>,...
All messaging methods are managed by BroadcastService. Use BroadcastService.getBroadcastMethod(String) to
access a specific one.
-
Method Summary
Modifier and TypeMethodDescriptionProvides 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 Details
-
init
Called once when the messaging method has been registered -
shutdown
void shutdown()Called before system shutdown -
send
Sends a raw data message to all connected hybris platform nodes -
registerProcessor
Registers a message processor to be notified upon message received. -
unregisterProcessor
Removes a registered message processor. -
getSettings
Provides generic access to method specific settings
-