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
public abstract class AbstractBroadcastMethod extends java.lang.Object implements BroadcastMethod
Base class for implementing newBroadcastMethods. Takes care of listeners.
-
-
Constructor Summary
Constructors Constructor Description AbstractBroadcastMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<BroadcastMessageListener>getListeners()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 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, wait
-
Methods inherited from interface de.hybris.platform.cluster.BroadcastMethod
send
-
-
-
-
Method Detail
-
getListeners
protected java.util.List<BroadcastMessageListener> getListeners()
-
notifyMessgageReceived
protected void notifyMessgageReceived(RawMessage message)
-
registerProcessor
public void registerProcessor(BroadcastMessageListener listener)
Description copied from interface:BroadcastMethodRegisters a message processor to be notified upon message received.- Specified by:
registerProcessorin interfaceBroadcastMethod
-
unregisterProcessor
public void unregisterProcessor(BroadcastMessageListener listener)
Description copied from interface:BroadcastMethodRemoves a registered message processor.- Specified by:
unregisterProcessorin interfaceBroadcastMethod
-
init
public void init(BroadcastService service)
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
public java.util.Map<java.lang.String,java.lang.String> getSettings()
Description copied from interface:BroadcastMethodProvides generic access to method specific settings- Specified by:
getSettingsin interfaceBroadcastMethod
-
-