Package de.hybris.platform.cluster
Class AbstractBroadcastMethod
java.lang.Object
de.hybris.platform.cluster.AbstractBroadcastMethod
- All Implemented Interfaces:
BroadcastMethod
- Direct Known Subclasses:
DummyBroadcastMethod,JGroupsBroadcastMethod,LoopBackBroadcastMethod,UDPBroadcastMethod,UnicastBroadcastMethod
Base class for implementing new
BroadcastMethods. Takes care of listeners.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<BroadcastMessageListener>Provides generic access to method specific settingsvoidinit(BroadcastService service) Called once when the messaging method has been registeredprotected voidnotifyMessgageReceived(RawMessage message) voidregisterProcessor(BroadcastMessageListener listener) Registers a message processor to be notified upon message received.voidshutdown()Called before system shutdownvoidunregisterProcessor(BroadcastMessageListener listener) Removes a registered message processor.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.cluster.BroadcastMethod
send
-
Constructor Details
-
AbstractBroadcastMethod
public AbstractBroadcastMethod()
-
-
Method Details
-
getListeners
-
notifyMessgageReceived
-
registerProcessor
Description copied from interface:BroadcastMethodRegisters a message processor to be notified upon message received.- Specified by:
registerProcessorin interfaceBroadcastMethod
-
unregisterProcessor
Description copied from interface:BroadcastMethodRemoves a registered message processor.- Specified by:
unregisterProcessorin interfaceBroadcastMethod
-
init
Description copied from interface:BroadcastMethodCalled once when the messaging method has been registered- Specified by:
initin interfaceBroadcastMethod
-
shutdown
public void shutdown()Description copied from interface:BroadcastMethodCalled before system shutdown- Specified by:
shutdownin interfaceBroadcastMethod
-
getSettings
Description copied from interface:BroadcastMethodProvides generic access to method specific settings- Specified by:
getSettingsin interfaceBroadcastMethod
-