Package de.otto.synapse.channel
Class ShardResponse
java.lang.Object
de.otto.synapse.channel.ShardResponse
public final class ShardResponse
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.time.DurationgetDurationBehind()com.google.common.collect.ImmutableList<TextMessage>getMessages()java.lang.StringgetShardName()ShardPositiongetShardPosition()inthashCode()static ShardResponseshardResponse(ShardPosition shardPosition, java.time.Duration durationBehind, com.google.common.collect.ImmutableList<TextMessage> messages)static ShardResponseshardResponse(ShardPosition shardPosition, java.time.Duration durationBehind, TextMessage... messages)java.lang.StringtoString()
-
Method Details
-
shardResponse
public static ShardResponse shardResponse(ShardPosition shardPosition, java.time.Duration durationBehind, com.google.common.collect.ImmutableList<TextMessage> messages) -
shardResponse
public static ShardResponse shardResponse(ShardPosition shardPosition, java.time.Duration durationBehind, TextMessage... messages) -
getShardName
public java.lang.String getShardName() -
getShardPosition
-
getDurationBehind
public java.time.Duration getDurationBehind() -
getMessages
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-