Package com.eventstore.dbclient
Class ReadMessage
- java.lang.Object
-
- com.eventstore.dbclient.ReadMessage
-
public final class ReadMessage extends java.lang.Object
Received when performing a regular read operation (not a subscription).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedEvent
getEvent()
Returns a resolved event if defined.long
getFirstStreamPosition()
Returns the first stream position if defined.Position
getLastAllPosition()
Returns the last $all position if defined.long
getLastStreamPosition()
Returns the last stream position if defined.boolean
hasEvent()
If this messages holds a resolved event.boolean
hasFirstStreamPosition()
If this messages holds the first stream position.boolean
hasLastAllPosition()
If this messages holds the last $all position.boolean
hasLastStreamPosition()
If this messages holds the last stream position.
-
-
-
Method Detail
-
hasFirstStreamPosition
public boolean hasFirstStreamPosition()
If this messages holds the first stream position.
-
hasLastStreamPosition
public boolean hasLastStreamPosition()
If this messages holds the last stream position.
-
hasLastAllPosition
public boolean hasLastAllPosition()
If this messages holds the last $all position.
-
hasEvent
public boolean hasEvent()
If this messages holds a resolved event.
-
getFirstStreamPosition
public long getFirstStreamPosition()
Returns the first stream position if defined.- Throws:
java.lang.NullPointerException
- if not defined.
-
getLastStreamPosition
public long getLastStreamPosition()
Returns the last stream position if defined.- Throws:
java.lang.NullPointerException
- if not defined.
-
getLastAllPosition
public Position getLastAllPosition()
Returns the last $all position if defined.- Returns:
- null is not defined.
-
getEvent
public ResolvedEvent getEvent()
Returns a resolved event if defined.- Returns:
- null is not defined.
-
-