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 newBroadcastMethod
s. 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 settingsvoid
init(BroadcastService service)
Called once when the messaging method has been registeredprotected void
notifyMessgageReceived(RawMessage message)
void
registerProcessor(BroadcastMessageListener listener)
Registers a message processor to be notified upon message received.void
shutdown()
Called before system shutdownvoid
unregisterProcessor(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:BroadcastMethod
Registers a message processor to be notified upon message received.- Specified by:
registerProcessor
in interfaceBroadcastMethod
-
unregisterProcessor
public void unregisterProcessor(BroadcastMessageListener listener)
Description copied from interface:BroadcastMethod
Removes a registered message processor.- Specified by:
unregisterProcessor
in interfaceBroadcastMethod
-
init
public void init(BroadcastService service)
Description copied from interface:BroadcastMethod
Called once when the messaging method has been registered- Specified by:
init
in interfaceBroadcastMethod
-
shutdown
public void shutdown()
Description copied from interface:BroadcastMethod
Called before system shutdown- Specified by:
shutdown
in interfaceBroadcastMethod
-
getSettings
public java.util.Map<java.lang.String,java.lang.String> getSettings()
Description copied from interface:BroadcastMethod
Provides generic access to method specific settings- Specified by:
getSettings
in interfaceBroadcastMethod
-
-