public abstract class StreamState
extends java.lang.Object
The KurrentDB server will assure idempotency for all requests using any value in ExpectedRevision except ANY. When using ANY, the EventStoreDB server will do its best to assure idempotency but will not guarantee it. Any other ExpectedRevision instances are meant for optimistic concurrency checks.
| Modifier and Type | Class and Description |
|---|---|
static class |
StreamState.AnyStreamState |
static class |
StreamState.NoStreamState |
static class |
StreamState.StreamExistsState |
static class |
StreamState.StreamRevisionStreamState |
| Modifier and Type | Method and Description |
|---|---|
static StreamState |
any()
This writes should not conflict with anything and should always succeed.
|
boolean |
equals(java.lang.Object o) |
static StreamState |
fromRawLong(long revision) |
int |
hashCode() |
static StreamState |
noStream()
The stream being written to should not yet exist.
|
static StreamState |
streamExists()
The stream should exist.
|
static StreamState |
streamRevision(long revision)
States that the last event written to the stream should have an event revision matching your expected value.
|
long |
toRawLong() |
public static StreamState any()
public static StreamState noStream()
public static StreamState streamExists()
public static StreamState streamRevision(long revision)
public static StreamState fromRawLong(long revision)
public long toRawLong()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Object