- Companion
- object
Value members
Inherited methods
Verifies if I
can be accepted.
Verifies if I
can be accepted.
If this yields to true, then the pubsub can accept this element, and interpreter is free to invoke publish
.
If this yields to false, then interpreter holds the publisher, until there is at least one get
(either successsful or not) in which case this is consulted again.
- Value Params
- i
I
to publish
- Inherited from
- Strategy
Yields to true if there are no elements to get
.
Yields to true if there are no elements to get
.
- Inherited from
- Strategy
Gets O
, selected by selector
.
Gets O
, selected by selector
.
Yields to None
, if subscriber cannot be satisfied, causing the subscriber to hold, until next successful publish
Yields to Some((s,o))
if the subscriber may be satisfied.
- Value Params
- selector
specifies which
O
thisget
is interested in. In case of a subscription based strategy, theSelector
shall hold the identity of the subscriber.
- Inherited from
- Strategy
Publishes I
. This must always succeed.
Publishes I
. This must always succeed.
Interpreter must only invoke this when accepts
yields to true.
- Value Params
- i
I
to publish
- Inherited from
- Strategy
Consulted by interpreter to subscribe the given selector.
A subscriptions manages context/state across multiple get
requests.
Yields to false if the subscription cannot be satisfied.
Consulted by interpreter to subscribe the given selector.
A subscriptions manages context/state across multiple get
requests.
Yields to false if the subscription cannot be satisfied.
- Value Params
- selector
selector that shall be used with mulitple subsequent
get
operations
- Inherited from
- Strategy
Transforms selector to selector of this state by applying the f
to Sel2
and state of this strategy. *
Transforms selector to selector of this state by applying the f
to Sel2
and state of this strategy. *
- Inherited from
- Strategy
When strategy supports long-term subscriptions, this is used by interpreter to cancel a previous subscription, indicating the subscriber is no longer interested in getting more data.
When strategy supports long-term subscriptions, this is used by interpreter to cancel a previous subscription, indicating the subscriber is no longer interested in getting more data.
- Value Params
- selector
selector whose selection shall be canceled
- Inherited from
- Strategy