public class RoundRobinScheduler extends java.lang.Object implements IRequestScheduler
Constructor and Description |
---|
RoundRobinScheduler(RequestSchedulerOptions options) |
Modifier and Type | Method and Description |
---|---|
void |
queue(java.lang.Thread t,
java.lang.String id,
long timeoutMS)
Queue incoming request threads
|
void |
release()
A convenience method for indicating when a particular request has completed
processing, and before a return to the client
|
public RoundRobinScheduler(RequestSchedulerOptions options)
public void queue(java.lang.Thread t, java.lang.String id, long timeoutMS) throws java.util.concurrent.TimeoutException
IRequestScheduler
queue
in interface IRequestScheduler
t
- Thread handing the requestid
- Scheduling parameter, an id to distinguish profiles (users/keyspace)timeoutMS
- The max time in milliseconds to spend blocking for a slotjava.util.concurrent.TimeoutException
public void release()
IRequestScheduler
release
in interface IRequestScheduler
Copyright © 2018 The Apache Software Foundation