Package com.eventstore.dbclient
Class ReadMessage
- java.lang.Object
-
- com.eventstore.dbclient.ReadMessage
-
public final class ReadMessage extends java.lang.ObjectReceived when performing a regular read operation (not a subscription).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResolvedEventgetEvent()Returns a resolved event if defined.longgetFirstStreamPosition()Returns the first stream position if defined.PositiongetLastAllPosition()Returns the last $all position if defined.longgetLastStreamPosition()Returns the last stream position if defined.booleanhasEvent()If this messages holds a resolved event.booleanhasFirstStreamPosition()If this messages holds the first stream position.booleanhasLastAllPosition()If this messages holds the last $all position.booleanhasLastStreamPosition()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.
-
-