MetaStreamsSyntax
Extensions
Extensions
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 Params
- 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.
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 Params
- 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.
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 Params
- 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.
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 Params
- 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.