Package de.otto.synapse.channel
Class ChannelPosition
java.lang.Object
de.otto.synapse.channel.ChannelPosition
- All Implemented Interfaces:
Serializable
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ChannelPositionchannelPosition(ShardPosition... shardPositions) static ChannelPositionchannelPosition(Iterable<ShardPosition> shardPositions) booleanstatic ChannelPositioninthashCode()static ChannelPositionmerge(ChannelPosition... channelPositions) static ChannelPositionmerge(ChannelPosition channelPosition, ShardPosition shardPosition) static ChannelPositionmerge(List<ChannelPosition> channelPositions) Returns the position of a single shard, orShardPosition.fromHorizon(String), if there is no information about the shard.shards()Returns a Set containing all shard names of this ChannelPosition.toString()
-
Constructor Details
-
ChannelPosition
-
-
Method Details
-
fromHorizon
-
merge
-
merge
-
merge
-
channelPosition
-
channelPosition
-
shards
Returns a Set containing all shard names of this ChannelPosition.- Returns:
- set of shard names
-
shard
Returns the position of a single shard, orShardPosition.fromHorizon(String), if there is no information about the shard.- Parameters:
shard- the shard id- Returns:
- ShardPosition
-
equals
-
hashCode
public int hashCode() -
toString
-