Package org.apache.druid.frame.processor
Class Bouncer
java.lang.Object
org.apache.druid.frame.processor.Bouncer
Limiter for access to some resource.
Used by
FrameProcessorExecutor.runAllFully(org.apache.druid.frame.processor.manager.ProcessorManager<T, ? extends R>, int, org.apache.druid.frame.processor.Bouncer, java.lang.String) to limit the number of outstanding processors.-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcom.google.common.util.concurrent.ListenableFuture<Bouncer.Ticket>ticket()static Bouncer
-
Constructor Details
-
Bouncer
public Bouncer(int maxCount) Create a Bouncer that issues a limited number of tickets. -
Bouncer
Create a Bouncer that issues a limited number of tickets from a parent.
-
-
Method Details
-
unlimited
-
getMaxCount
public int getMaxCount() -
ticket
-