Class PoolMaster
java.lang.Object
org.apache.pekko.http.impl.engine.client.PoolMaster
INTERNAL API
 
API for accessing the global pool master actor.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic PoolMasterapply(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<Object>poolSize()For testing onlyorg.apache.pekko.actor.ActorRefref()scala.concurrent.Future<org.apache.pekko.Done>Shutdown the corresponding pool and signal its termination.scala.concurrent.Future<org.apache.pekko.Done>Triggers an orderly shutdown of all host connections pools currently maintained by thepekko.actor.ActorSystem.voidStart the corresponding pool to make it ready to serve requests.
- 
Constructor Details- 
PoolMasterpublic PoolMaster(org.apache.pekko.actor.ActorRef ref) 
 
- 
- 
Method Details- 
apply
- 
refpublic org.apache.pekko.actor.ActorRef ref()
- 
dispatchRequestpublic scala.concurrent.Future<HttpResponse> dispatchRequest(PoolId poolId, HttpRequest request, org.apache.pekko.stream.Materializer fm) Send a request through the corresponding pool. If the pool is not running, it will be started automatically. If it is shutting down, it will restart as soon as the shutdown operation is complete and serve this request.- Parameters:
- request- the request
- poolId- (undocumented)
- fm- (undocumented)
- Returns:
- the response
 
- 
startPoolStart the corresponding pool to make it ready to serve requests. If the pool is already started, this does nothing. If it is being shutdown, it will restart as soon as the shutdown operation is complete.- Parameters:
- poolId- (undocumented)
- fm- (undocumented)
 
- 
shutdownShutdown the corresponding pool and signal its termination. If the pool is not running or is being shutting down, this does nothing.The shutdown will wait for all ongoing requests to be completed. - Parameters:
- poolId- (undocumented)
- Returns:
- a Future completed when the pool has been shutdown.
 
- 
shutdownAllpublic scala.concurrent.Future<org.apache.pekko.Done> shutdownAll()Triggers an orderly shutdown of all host connections pools currently maintained by thepekko.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. - Returns:
- (undocumented)
 
- 
poolSizeFor testing only- Returns:
- (undocumented)
 
 
-