public final class PoolMasterActor
extends java.lang.Object
implements org.apache.pekko.actor.Actor, org.apache.pekko.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.
| Modifier and Type | Class and Description |
|---|---|
static class |
PoolMasterActor.HasBeenShutdown |
static class |
PoolMasterActor.HasBeenShutdown$ |
static class |
PoolMasterActor.PoolInterfaceRunning |
static class |
PoolMasterActor.PoolInterfaceRunning$ |
static class |
PoolMasterActor.PoolInterfaceShuttingDown |
static class |
PoolMasterActor.PoolInterfaceShuttingDown$ |
static interface |
PoolMasterActor.PoolInterfaceStatus |
static class |
PoolMasterActor.PoolSize |
static class |
PoolMasterActor.PoolSize$ |
static class |
PoolMasterActor.PoolStatus |
static class |
PoolMasterActor.PoolStatus$ |
static class |
PoolMasterActor.SendRequest |
static class |
PoolMasterActor.SendRequest$ |
static class |
PoolMasterActor.Shutdown |
static class |
PoolMasterActor.Shutdown$ |
static class |
PoolMasterActor.ShutdownAll |
static class |
PoolMasterActor.ShutdownAll$ |
static class |
PoolMasterActor.StartPool |
static class |
PoolMasterActor.StartPool$ |
| Constructor and Description |
|---|
PoolMasterActor() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.pekko.actor.ActorContext |
context() |
static org.apache.pekko.actor.Props |
props() |
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> |
receive() |
org.apache.pekko.actor.ActorRef |
self() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait$init$, aroundPostRestart, aroundPostStop, aroundPreRestart, aroundPreStart, aroundReceive, noSender, org$apache$pekko$actor$Actor$_setter_$context_$eq, org$apache$pekko$actor$Actor$_setter_$self_$eq, postRestart, postStop, preRestart, preStart, sender, supervisorStrategy, unhandledpublic static org.apache.pekko.actor.Props props()
public org.apache.pekko.actor.ActorContext context()
context in interface org.apache.pekko.actor.Actorpublic final org.apache.pekko.actor.ActorRef self()
self in interface org.apache.pekko.actor.Actorpublic scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
receive in interface org.apache.pekko.actor.Actor