com.typesafe.conductr.clientlib.akka
Client API which provides a nicer interface to the BundlesConnector actor.
Client API which provides a nicer interface to the BundlesConnector actor.
Returns a flow graph of Flow[(HttpRequest, HttpRequest), Seq[Bundle], NotUsed]
.
The input is a tuple of HttpRequest: - The first element of the tuple is the HTTP request for ConductR Bundles Events endpoint. - The second element of the tuple is the HTTP request for ConductR Bundles endpoint.
The Seq[Bundle]
will be emitted whenever there's any change of the bundle state within ConductR.
The change detection is derived from having Bundle SSE propagated by ConductR Bundles Events endpoint, and an
updated Seq[Bundle]
being recognized by the BundlesConnector actor.
If the timeout specified by stopAfter
has elapsed and the stream has not yet complete, BundlesConnector
will terminate the stream with an error using TimeoutException.
the ConductR Control Protocol base URL
the timeout waiting for the stream to complete.
the expected amount of time of which SSE event burst from /bundles/events
will
take place. Once event burst is over, the latest bundle state will be obtained
from /bundles/events
the amount of time to wait to reconnect to /bundles/events
when disconnected.
the actor system which is used to build BundlesConnector
the flow graph of Flow[(HttpRequest, HttpRequest), Seq[Bundle], NotUsed]
.