Package org.apache.druid.frame.processor
Class Bouncer
- java.lang.Object
-
- org.apache.druid.frame.processor.Bouncer
-
public class Bouncer extends Object
Limiter for access to some resource. Used byFrameProcessorExecutor.runAllFully(org.apache.druid.frame.processor.manager.ProcessorManager<T, R>, int, org.apache.druid.frame.processor.Bouncer, java.lang.String)
to limit the number of outstanding processors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
Bouncer.Ticket
-
Constructor Summary
Constructors Constructor Description Bouncer(int maxCount)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getMaxCount()
com.google.common.util.concurrent.ListenableFuture<Bouncer.Ticket>
ticket()
static Bouncer
unlimited()
-
-
-
Method Detail
-
unlimited
public static Bouncer unlimited()
-
getMaxCount
public int getMaxCount()
-
ticket
public com.google.common.util.concurrent.ListenableFuture<Bouncer.Ticket> ticket()
-
-