Class PoolMasterActor
- All Implemented Interfaces:
akka.actor.Actor
,akka.actor.ActorLogging
Manages access to a host connection pool or rather: a sequence of pool incarnations.
A host connection pool for a given HostConnectionPoolSetup
is a running stream, whose outside interface is
provided by its PoolInterface
actor. The actor accepts PoolInterface.PoolRequest
messages
and completes their responsePromise
whenever the respective response has been received (or an error occurred).
The PoolMasterActor
provides a layer of indirection between a PoolId
, which represents a pool,
and the PoolInterface
instances which are created on-demand and stopped after an idle-timeout.
Several PoolId
objects may be mapped to the same pool if they have the same HostConnectionPoolSetup
and are marked as being shared. This is the case for example for gateways obtained through
HttpExt.cachedHostConnectionPool
. Some other gateways are not shared, such as those obtained through
HttpExt.newHostConnectionPool
, and will have their dedicated restartable pool.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
static class
static final class
static class
static final class
static class
static interface
static final class
static class
static final class
static class
static final class
static class
static final class
static class
static final class
static class
static final class
static class
Nested classes/interfaces inherited from interface akka.actor.Actor
akka.actor.Actor.emptyBehavior$, akka.actor.Actor.ignoringBehavior$
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface akka.actor.Actor
akka$actor$Actor$_setter_$context_$eq, akka$actor$Actor$_setter_$self_$eq, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, postRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandled
Methods inherited from interface akka.actor.ActorLogging
akka$actor$ActorLogging$$_log, akka$actor$ActorLogging$$_log_$eq, log
-
Constructor Details
-
PoolMasterActor
public PoolMasterActor()
-
-
Method Details
-
props
public static akka.actor.Props props() -
context
public akka.actor.ActorContext context()- Specified by:
context
in interfaceakka.actor.Actor
-
self
public final akka.actor.ActorRef self()- Specified by:
self
in interfaceakka.actor.Actor
-
receive
- Specified by:
receive
in interfaceakka.actor.Actor
-