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.ActorLoggingINTERNAL APIManages access to a host connection pool or rather: a sequence of pool incarnations.
A host connection pool for a given
HostConnectionPoolSetupis a running stream, whose outside interface is provided by itsPoolInterfaceactor. The actor acceptsPoolInterface.PoolRequestmessages and completes theirresponsePromisewhenever the respective response has been received (or an error occurred).The
PoolMasterActorprovides a layer of indirection between aPoolId, which represents a pool, and thePoolInterfaceinstances which are created on-demand and stopped after an idle-timeout.Several
PoolIdobjects may be mapped to the same pool if they have the sameHostConnectionPoolSetupand 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 classPoolMasterActor.HasBeenShutdownstatic classPoolMasterActor.HasBeenShutdown$static classPoolMasterActor.PoolInterfaceRunningstatic classPoolMasterActor.PoolInterfaceRunning$static classPoolMasterActor.PoolInterfaceShuttingDownstatic classPoolMasterActor.PoolInterfaceShuttingDown$static interfacePoolMasterActor.PoolInterfaceStatusstatic classPoolMasterActor.PoolSizestatic classPoolMasterActor.PoolSize$static classPoolMasterActor.PoolStatusstatic classPoolMasterActor.PoolStatus$static classPoolMasterActor.SendRequeststatic classPoolMasterActor.SendRequest$static classPoolMasterActor.Shutdownstatic classPoolMasterActor.Shutdown$static classPoolMasterActor.ShutdownAllstatic classPoolMasterActor.ShutdownAll$static classPoolMasterActor.StartPoolstatic classPoolMasterActor.StartPool$
-
Constructor Summary
Constructors Constructor Description PoolMasterActor()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description akka.actor.ActorContextcontext()static akka.actor.Propsprops()scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit>receive()akka.actor.ActorRefself()-
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:
contextin interfaceakka.actor.Actor
-
self
public final akka.actor.ActorRef self()
- Specified by:
selfin interfaceakka.actor.Actor
-
receive
public scala.PartialFunction<java.lang.Object,scala.runtime.BoxedUnit> receive()
- Specified by:
receivein interfaceakka.actor.Actor
-
-