MetaStreamsSyntax

sec.syntax.MetaStreamsSyntax

Attributes

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

Members list

Extensions

Extensions

extension [F[_]](ms: MetaStreams[F])(ms: MetaStreams[F])(implicit evidence$1: MonadThrow[F])
def setMaxAge(id: Id, expectedState: StreamState, age: FiniteDuration): F[WriteResult]

Sets max age in FiniteDuration for a stream and returns 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.

Sets max age in FiniteDuration for a stream and returns 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 FiniteDuration value for data in the stream. Valid values are 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

Source
metastreams.scala
extension [F[_]](ms: MetaStreams[F])(ms: MetaStreams[F])(implicit evidence$2: MonadThrow[F])
def setMaxCount(id: Id, expectedState: StreamState, count: Int): F[WriteResult]

Sets max count in Int for a stream and returns 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.

Sets max count in Int for a stream and returns 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 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

Source
metastreams.scala
extension [F[_]](ms: MetaStreams[F])(ms: MetaStreams[F])(implicit evidence$4: MonadThrow[F])
def setTruncateBefore(id: Id, expectedState: StreamState, truncateBefore: Long): F[WriteResult]

Sets truncated before in Long for a stream and returns 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.

Sets truncated before in Long for a stream and returns 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 Long value for data in the stream. Valid values are Long greater or equal to 0L. An InvalidInput exception is raised for invalid input value.

Attributes

Source
metastreams.scala
extension [F[_]](ms: MetaStreams[F])(ms: MetaStreams[F])(implicit evidence$3: MonadThrow[F])
def setCacheControl(id: Id, expectedState: StreamState, cacheControl: FiniteDuration): F[WriteResult]

Sets cache control in FiniteDuration for a stream and returns 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.

Sets cache control in FiniteDuration for a stream and returns 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 FiniteDuration value for data in the stream. Valid values are 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

Source
metastreams.scala