ApiSyntax

sec.syntax.ApiSyntax

Attributes

Source
api.scala
Graph
Supertypes
trait ReadsSyntax
class Object
trait Matchable
class Any
Show all
Known subtypes
trait AllSyntax
object all.type
object api.type

Members list

Extensions

Inherited extensions

extension [F[_]](ms: MetaStreams[F])(implicit evidence$2: MonadThrow[F])

Sets max count in scala.Int for a stream and returns sec.api.WriteResult with current positions of the stream after a successful operation.

Sets max count in scala.Int for a stream and returns sec.api.WriteResult with current positions of the stream after a successful operation. Failure to fulfill the expected state is manifested by raising sec.api.exceptions.WrongExpectedState.

Value parameters

count

the max count scala.Int value for data in the stream. Valid values are greater or equal to 1. An InvalidInput exception is raised for invalid input value.

expectedState

the state that the stream is expected to in. See StreamState for details.

id

the id of the stream.

Attributes

Inherited from:
MetaStreamsSyntax
Source
metastreams.scala
extension [F[_]](ms: MetaStreams[F])(implicit evidence$4: MonadThrow[F])

Sets truncated before in Long for a stream and returns sec.api.WriteResult with current positions of the stream after a successful operation.

Sets truncated before in Long for a stream and returns sec.api.WriteResult with current positions of the stream after a successful operation. Failure to fulfill the expected state is manifested by raising sec.api.exceptions.WrongExpectedState.

Value parameters

expectedState

the state that the stream is expected to in. See StreamState for details.

id

the id of the stream.

truncatedBefore

the truncated before scala.Long value for data in the stream. Valid values are scala.Long greater or equal to 0L. An InvalidInput exception is raised for invalid input value.

Attributes

Inherited from:
MetaStreamsSyntax
Source
metastreams.scala
extension [F[_]](ms: MetaStreams[F])(implicit evidence$3: MonadThrow[F])

Sets cache control in scala.concurrent.duration.FiniteDuration for a stream and returns sec.api.WriteResult with current positions of the stream after a successful operation.

Sets cache control in scala.concurrent.duration.FiniteDuration for a stream and returns sec.api.WriteResult with current positions of the stream after a successful operation. Failure to fulfill the expected state is manifested by raising sec.api.exceptions.WrongExpectedState.

Value parameters

cacheControl

the cache control scala.concurrent.duration.FiniteDuration value for data in the stream. Valid values are scala.concurrent.duration.FiniteDuration greater or equal to 1 second. An InvalidInput exception is raised for invalid input value.

expectedState

the state that the stream is expected to in. See StreamState for details.

id

the id of the stream.

Attributes

Inherited from:
MetaStreamsSyntax
Source
metastreams.scala
extension [F[_]](ms: MetaStreams[F])(implicit evidence$1: MonadThrow[F])

Sets max age in scala.concurrent.duration.FiniteDuration for a stream and returns sec.api.WriteResult with current positions of the stream after a successful operation.

Sets max age in scala.concurrent.duration.FiniteDuration for a stream and returns sec.api.WriteResult with current positions of the stream after a successful operation. Failure to fulfill the expected state is manifested by raising sec.api.exceptions.WrongExpectedState.

Value parameters

age

the max age scala.concurrent.duration.FiniteDuration value for data in the stream. Valid values are scala.concurrent.duration.FiniteDuration greater or equal to 1 second. An InvalidInput exception is raised for invalid input value.

expectedState

the state that the stream is expected to in. See StreamState for details.

id

the id of the stream.

Attributes

Inherited from:
MetaStreamsSyntax
Source
metastreams.scala
extension [F[_]](r: Reads[F])
def readAllMessagesBackwards(from: LogPosition, maxCount: Long, resolveLinkTos: Boolean): Stream[F, AllMessage]

Read sec.api.AllMessage messages backwards from the global stream, sec.StreamId.All.

Read sec.api.AllMessage messages backwards from the global stream, sec.StreamId.All.

Value parameters

from

log position to read from.

maxCount

limits maximum events returned.

resolveLinkTos

whether to resolve EventType.LinkTo events automatically.

Attributes

Returns

a fs2.Stream that emits sec.api.AllMessage values.

Inherited from:
ReadsSyntax
Source
reads.scala
def readAllMessagesForwards(from: LogPosition, maxCount: Long, resolveLinkTos: Boolean): Stream[F, AllMessage]

Read sec.api.AllMessage messages forwards from the global stream, sec.StreamId.All.

Read sec.api.AllMessage messages forwards from the global stream, sec.StreamId.All.

Value parameters

from

log position to read from.

maxCount

limits maximum events returned.

resolveLinkTos

whether to resolve EventType.LinkTo events automatically.

Attributes

Returns

a fs2.Stream that emits sec.api.AllMessage values.

Inherited from:
ReadsSyntax
Source
reads.scala
def readStreamMessagesBackwards(streamId: StreamId, from: StreamPosition, maxCount: Long, resolveLinkTos: Boolean): Stream[F, StreamMessage]

Read sec.api.StreamMessage messages backwards from an individual stream.

Read sec.api.StreamMessage messages backwards from an individual stream.

Value parameters

from

stream position to read from.

maxCount

limits maximum events returned.

resolveLinkTos

whether to resolve EventType.LinkTo events automatically.

streamId

the id of the stream to read from.

Attributes

Returns

a fs2.Stream that emits sec.api.StreamMessage values.

Inherited from:
ReadsSyntax
Source
reads.scala
def readStreamMessagesForwards(streamId: StreamId, from: StreamPosition, maxCount: Long, resolveLinkTos: Boolean): Stream[F, StreamMessage]

Read sec.api.StreamMessage messages forwards from an individual stream.

Read sec.api.StreamMessage messages forwards from an individual stream.

Value parameters

from

stream position to read from.

maxCount

limits maximum events returned.

resolveLinkTos

whether to resolve EventType.LinkTo events automatically.

streamId

the id of the stream to read from.

Attributes

Returns

a fs2.Stream that emits sec.api.StreamMessage values.

Inherited from:
ReadsSyntax
Source
reads.scala
extension [F[_]](s: Streams[F])
def readAllBackwards(from: LogPosition, maxCount: Long, resolveLinkTos: Boolean): Stream[F, Event]

Read events backwards from the global stream, sec.StreamId.All.

Read events backwards from the global stream, sec.StreamId.All.

Value parameters

from

log position to read from.

maxCount

limits maximum events returned.

resolveLinkTos

whether to resolve EventType.LinkTo events automatically.

Attributes

Returns

a fs2.Stream that emits Event values.

Inherited from:
StreamsSyntax
Source
streams.scala
def readAllForwards(from: LogPosition, maxCount: Long, resolveLinkTos: Boolean): Stream[F, Event]

Read events forwards from the global stream, sec.StreamId.All.

Read events forwards from the global stream, sec.StreamId.All.

Value parameters

from

log position to read from.

maxCount

limits maximum events returned.

resolveLinkTos

whether to resolve EventType.LinkTo events automatically.

Attributes

Returns

a fs2.Stream that emits Event values.

Inherited from:
StreamsSyntax
Source
streams.scala
def readStreamBackwards(streamId: StreamId, from: StreamPosition, maxCount: Long, resolveLinkTos: Boolean): Stream[F, Event]

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.

Value parameters

from

stream position to read from.

maxCount

limits maximum events returned.

resolveLinkTos

whether to resolve EventType.LinkTo events automatically.

streamId

the id of the stream to read from.

Attributes

Returns

a fs2.Stream that emits Event values.

Inherited from:
StreamsSyntax
Source
streams.scala
def readStreamForwards(streamId: StreamId, from: StreamPosition, maxCount: Long, resolveLinkTos: Boolean): Stream[F, Event]

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.

Value parameters

from

stream position to read from.

maxCount

limits maximum events returned.

resolveLinkTos

whether to resolve EventType.LinkTo events automatically.

streamId

the id of the stream to read from.

Attributes

Returns

a fs2.Stream that emits Event values.

Inherited from:
StreamsSyntax
Source
streams.scala

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.

Value parameters

exclusiveFrom

log position to start from. Use scala.None to subscribe from the beginning.

filterOptions

to use when subscribing - See sec.api.SubscriptionFilterOptions.

Attributes

Returns

a fs2.Stream that emits either sec.api.Checkpoint or Event values. How frequent sec.api.Checkpoint is emitted depends on @filterOptions.

Inherited from:
StreamsSyntax
Source
streams.scala
def subscribeToAll(exclusiveFrom: Option[LogPosition]): Stream[F, Event]

Subscribes to the global stream, StreamId.All without resolving EventType.LinkTo events.

Subscribes to the global stream, StreamId.All without resolving EventType.LinkTo events.

Value parameters

exclusiveFrom

position to start from. Use scala.None to subscribe from the beginning.

Attributes

Returns

a fs2.Stream that emits Event values.

Inherited from:
StreamsSyntax
Source
streams.scala
def subscribeToStream(streamId: StreamId, exclusiveFrom: Option[StreamPosition]): Stream[F, Event]

Subscribes to an individual stream without resolving EventType.LinkTo events.

Subscribes to an individual stream without resolving EventType.LinkTo events.

Value parameters

exclusiveFrom

stream position to start from. Use scala.None to subscribe from the beginning.

streamId

the id of the stream to subscribe to.

Attributes

Returns

a fs2.Stream that emits Event values.

Inherited from:
StreamsSyntax
Source
streams.scala