Class Operation

    • Method Detail

      • getId

        public String getId()
        Returns the operation identifier. Log entries with the same identifier are assumed to be part of the same operation. The combination of this value and getProducer() must be globally unique.
      • getProducer

        public String getProducer()
        Returns an arbitrary producer identifier. The combination of this value and getId() must be globally unique. Examples: MyDivision.MyBigCompany.com, github.com/MyProject/MyApplication.
      • first

        public boolean first()
        Returns true if the corresponding entry is the first log entry in the operation, false otherwise.
      • last

        public boolean last()
        Returns true if the corresponding entry is the last log entry in the operation, false otherwise.
      • hashCode

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

        public Operation.Builder toBuilder()
        Returns a Builder for this operation.
      • newBuilder

        public static Operation.Builder newBuilder​(String id,
                                                   String producer)
        Returns a builder for Operation objects given the operation and producer identifiers. The combination of producer and id must be globally unique.
      • of

        public static Operation of​(String id,
                                   String producer)
        Returns a Operation object given the operation and producer identifiers. The combination of producer and id must be globally unique.