Package com.smeup.jardis.endpoint
Class JardisEndPoint<C extends com.smeup.jardis.core.JardisConfiguration>
- java.lang.Object
-
- com.smeup.jardis.endpoint.JardisEndPoint<C>
-
- Direct Known Subclasses:
JardisMemory,JardisProcess,JardisServer
public abstract class JardisEndPoint<C extends com.smeup.jardis.core.JardisConfiguration> extends Object
- Author:
- lana
-
-
Field Summary
Fields Modifier and Type Field Description protected Cconfiguration
-
Constructor Summary
Constructors Constructor Description JardisEndPoint(C configuration)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract voiddispatchBroadcastMessage(com.smeup.jardis.core.Message message)Send a broadcast message to all instances ofHandlerabstract booleandispatchConsumableMessage(com.smeup.jardis.core.Message message)Sends a consumable message to all instances ofHandlerDispathing is blocked if message is consumed by anHandlerCgetConfiguration()abstract voidshutdown()abstract voidstart()
-
-
-
Field Detail
-
configuration
protected final C extends com.smeup.jardis.core.JardisConfiguration configuration
-
-
Constructor Detail
-
JardisEndPoint
public JardisEndPoint(C configuration)
-
-
Method Detail
-
getConfiguration
public C getConfiguration()
-
start
public abstract void start()
-
shutdown
public abstract void shutdown()
-
dispatchConsumableMessage
public abstract boolean dispatchConsumableMessage(com.smeup.jardis.core.Message message)
Sends a consumable message to all instances ofHandlerDispathing is blocked if message is consumed by anHandler- Parameters:
message- The message- Returns:
- true if one Handler consumed the message, false elsewhere
-
dispatchBroadcastMessage
public abstract void dispatchBroadcastMessage(com.smeup.jardis.core.Message message)
Send a broadcast message to all instances ofHandler- Parameters:
message- The message
-
-