final class StreamsOps[F[_]] extends AnyVal
- Alphabetic
- By Inheritance
- StreamsOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- Any
- final def ##: Int
- Definition Classes
- Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def readAllBackwards(from: LogPosition = LogPosition.End, maxCount: Long = Long.MaxValue, resolveLinkTos: Boolean = false): Stream[F, AllEvent]
Read events backwards from the global stream, sec.StreamId.All.
Read events backwards from the global stream, sec.StreamId.All.
- from
log position to read from.
- maxCount
limits maximum events returned.
- resolveLinkTos
whether to resolve EventType.LinkTo events automatically.
- returns
a Stream that emits AllEvent values.
- def readAllForwards(from: LogPosition = LogPosition.Start, maxCount: Long = Long.MaxValue, resolveLinkTos: Boolean = false): Stream[F, AllEvent]
Read events forwards from the global stream, sec.StreamId.All.
Read events forwards from the global stream, sec.StreamId.All.
- from
log position to read from.
- maxCount
limits maximum events returned.
- resolveLinkTos
whether to resolve EventType.LinkTo events automatically.
- returns
a Stream that emits AllEvent values.
- def readStreamBackwards(streamId: StreamId, from: StreamPosition = StreamPosition.End, maxCount: Long = Long.MaxValue, resolveLinkTos: Boolean = false): Stream[F, StreamEvent]
Read events backwards from an individual stream.
Read events backwards from an individual stream. A sec.api.exceptions.StreamNotFound is raised when the stream does not exist.
- streamId
the id of the stream to read from.
- from
stream position to read from.
- maxCount
limits maximum events returned.
- resolveLinkTos
whether to resolve EventType.LinkTo events automatically.
- returns
a Stream that emits StreamEvent values.
- def readStreamForwards(streamId: StreamId, from: StreamPosition = StreamPosition.Start, maxCount: Long = Long.MaxValue, resolveLinkTos: Boolean = false): Stream[F, StreamEvent]
Read events forwards from an individual stream.
Read events forwards from an individual stream. A sec.api.exceptions.StreamNotFound is raised when the stream does not exist.
- streamId
the id of the stream to read from.
- from
stream position to read from.
- maxCount
limits maximum events returned.
- resolveLinkTos
whether to resolve EventType.LinkTo events automatically.
- returns
a Stream that emits StreamEvent values.
- val s: Streams[F]
- def subscribeToAll(exclusiveFrom: Option[LogPosition], filterOptions: SubscriptionFilterOptions): Stream[F, Either[Checkpoint, AllEvent]]
Subscribes to the global stream, StreamId.All using a subscription filter without resolving EventType.LinkTo events.
Subscribes to the global stream, StreamId.All using a subscription filter without resolving EventType.LinkTo events.
- exclusiveFrom
log position to start from. Use None to subscribe from the beginning.
- filterOptions
to use when subscribing - See sec.api.SubscriptionFilterOptions.
- returns
a Stream that emits either Checkpoint or AllEvent values. How frequent Checkpoint is emitted depends on filterOptions.
- def subscribeToAll(exclusiveFrom: Option[LogPosition]): Stream[F, AllEvent]
Subscribes to the global stream, StreamId.All without resolving EventType.LinkTo events.
Subscribes to the global stream, StreamId.All without resolving EventType.LinkTo events.
- exclusiveFrom
position to start from. Use None to subscribe from the beginning.
- returns
a Stream that emits AllEvent values.
- def subscribeToStream(streamId: StreamId, exclusiveFrom: Option[StreamPosition]): Stream[F, StreamEvent]
Subscribes to an individual stream without resolving EventType.LinkTo events.
Subscribes to an individual stream without resolving EventType.LinkTo events.
- streamId
the id of the stream to subscribe to.
- exclusiveFrom
stream position to start from. Use None to subscribe from the beginning.
- returns
a Stream that emits StreamEvent values.
- def toString(): String
- Definition Classes
- Any