Class PoolMasterActor
- java.lang.Object
-
- akka.http.impl.engine.client.PoolMasterActor
-
- All Implemented Interfaces:
akka.actor.Actor
,akka.actor.ActorLogging
public final class PoolMasterActor extends java.lang.Object implements akka.actor.Actor, akka.actor.ActorLogging
INTERNAL APIManages 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 itsPoolInterface
actor. The actor acceptsPoolInterface.PoolRequest
messages and completes theirresponsePromise
whenever the respective response has been received (or an error occurred).The
PoolMasterActor
provides a layer of indirection between aPoolId
, which represents a pool, and thePoolInterface
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 sameHostConnectionPoolSetup
and are marked as being shared. This is the case for example for gateways obtained throughHttpExt.cachedHostConnectionPool
. Some other gateways are not shared, such as those obtained throughHttpExt.newHostConnectionPool
, and will have their dedicated restartable pool.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class 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 Summary
Constructors Constructor Description PoolMasterActor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description akka.actor.ActorContext
context()
static akka.actor.Props
props()
scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit>
receive()
akka.actor.ActorRef
self()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Method Detail
-
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
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
- Specified by:
receive
in interfaceakka.actor.Actor
-
-