Reference-counting Service. Starts with a reference count of 1, which can be incremented by incrementRefcount
and decremented by close. This means you should generally not call incrementRefcount immediately after
construction. If the reference count reaches zero, the underlying Service is closed.
If you use map, it will *not* increase the reference count, so only close the newly mapped Service and
not the old Service.
Linear Supertypes
Service[A, B], Closable, (A) ⇒ Future[B], AnyRef, Any
Reference-counting Service. Starts with a reference count of 1, which can be incremented by
incrementRefcount
and decremented byclose
. This means you should generally not callincrementRefcount
immediately after construction. If the reference count reaches zero, the underlying Service is closed.If you use
map
, it will *not* increase the reference count, so only close the newly mapped Service and not the old Service.