java.lang.Object
org.apache.sling.distribution.journal.impl.discovery.State

@Immutable @ParametersAreNonnullByDefault public class State extends Object
  • Constructor Details

    • State

      public State(String pubAgentName, String subAgentId, long timestamp, long offset, int retries, int maxRetries, boolean editable)
  • Method Details

    • getPubAgentName

      public String getPubAgentName()
    • getSubAgentId

      public String getSubAgentId()
    • getOffset

      public long getOffset()
    • getRetries

      public int getRetries()
    • getMaxRetries

      public int getMaxRetries()
    • getTimestamp

      public long getTimestamp()
    • isEditable

      public boolean isEditable()
    • equals

      public boolean equals(Object o)
      Indicates whether some other State is "equal to" this one. Equality compares all members except the #timestamp.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object