public class MessageRoutingInformation extends Object implements Serializable
CommandRouter
to decide to whom an incoming
CommandMessage
should be routed.
Holds the loadFactor
and commandFilter
, which respectively denote the desired load and set of
CommandMessages a node can(not) handle.Constructor and Description |
---|
MessageRoutingInformation(int loadFactor,
Predicate<? super CommandMessage<?>> commandFilter,
Serializer serializer) |
MessageRoutingInformation(int loadFactor,
SerializedObject<String> serializedCommandFilter) |
MessageRoutingInformation(int loadFactor,
String serializedCommandFilter,
String serializedCommandFilterType) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Predicate<? super CommandMessage<?>> |
getCommandFilter(Serializer serializer) |
int |
getLoadFactor() |
String |
getSerializedCommandFilter() |
String |
getSerializedCommandFilterType() |
int |
hashCode() |
String |
toString() |
public MessageRoutingInformation(int loadFactor, String serializedCommandFilter, String serializedCommandFilterType)
public MessageRoutingInformation(int loadFactor, SerializedObject<String> serializedCommandFilter)
public MessageRoutingInformation(int loadFactor, Predicate<? super CommandMessage<?>> commandFilter, Serializer serializer)
public int getLoadFactor()
public String getSerializedCommandFilter()
public String getSerializedCommandFilterType()
public Predicate<? super CommandMessage<?>> getCommandFilter(Serializer serializer)
Copyright © 2010–2017. All rights reserved.