Class ExpectedRevision

    • Method Detail

      • any

        public static ExpectedRevision any()
        This writes should not conflict with anything and should always succeed.
      • noStream

        public static ExpectedRevision noStream()
        The stream being written to should not yet exist. If it does exist, treats that as a concurrency problem.
      • streamExists

        public static ExpectedRevision streamExists()
        The stream should exist. If it or a metadata stream does not exist, treats that as a concurrency problem.
      • expectedRevision

        public static ExpectedRevision expectedRevision​(long revision)
        States that the last event written to the stream should have an event revision matching your expected value.
      • toRawLong

        public long toRawLong()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object