public class PoolMaster
extends java.lang.Object
API for accessing the global pool master actor.
| Constructor and Description | 
|---|
| PoolMaster(org.apache.pekko.actor.ActorRef ref) | 
| Modifier and Type | Method and Description | 
|---|---|
| static PoolMaster | apply(org.apache.pekko.actor.ExtendedActorSystem system) | 
| scala.concurrent.Future<HttpResponse> | dispatchRequest(PoolId poolId,
               HttpRequest request,
               org.apache.pekko.stream.Materializer fm)Send a request through the corresponding pool. | 
| scala.concurrent.Future<java.lang.Object> | poolSize()For testing only | 
| org.apache.pekko.actor.ActorRef | ref() | 
| scala.concurrent.Future<org.apache.pekko.Done> | shutdown(PoolId poolId)Shutdown the corresponding pool and signal its termination. | 
| scala.concurrent.Future<org.apache.pekko.Done> | shutdownAll()Triggers an orderly shutdown of all host connections pools currently maintained by the  pekko.actor.ActorSystem. | 
| void | startPool(PoolId poolId,
         org.apache.pekko.stream.Materializer fm)Start the corresponding pool to make it ready to serve requests. | 
public static PoolMaster apply(org.apache.pekko.actor.ExtendedActorSystem system)
public org.apache.pekko.actor.ActorRef ref()
public scala.concurrent.Future<HttpResponse> dispatchRequest(PoolId poolId, HttpRequest request, org.apache.pekko.stream.Materializer fm)
request - the requestpoolId - (undocumented)fm - (undocumented)public void startPool(PoolId poolId, org.apache.pekko.stream.Materializer fm)
poolId - (undocumented)fm - (undocumented)public scala.concurrent.Future<org.apache.pekko.Done> shutdown(PoolId poolId)
The shutdown will wait for all ongoing requests to be completed.
poolId - (undocumented)public scala.concurrent.Future<org.apache.pekko.Done> shutdownAll()
pekko.actor.ActorSystem.
 The returned future is completed when all pools that were live at the time of this method call
 have completed their shutdown process.
 If existing pool client flows are re-used or new ones materialized concurrently with or after this method call the respective connection pools will be restarted and not contribute to the returned future.
public scala.concurrent.Future<java.lang.Object> poolSize()