RpcSchedulerpublic class DefaultRpcScheduler extends java.lang.Object implements RpcScheduler
| Constructor | Description |
|---|---|
DefaultRpcScheduler(int priorityLevels,
java.lang.String namespace,
Configuration conf) |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addResponseTime(java.lang.String callName,
Schedulable schedulable,
ProcessingDetails details) |
Store a processing time value for an RPC call into this scheduler.
|
int |
getPriorityLevel(Schedulable obj) |
|
boolean |
shouldBackOff(Schedulable obj) |
|
void |
stop() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddResponseTimepublic DefaultRpcScheduler(int priorityLevels,
java.lang.String namespace,
Configuration conf)
public int getPriorityLevel(Schedulable obj)
getPriorityLevel in interface RpcSchedulerobj - input obj.public boolean shouldBackOff(Schedulable obj)
shouldBackOff in interface RpcSchedulerpublic void addResponseTime(java.lang.String callName,
Schedulable schedulable,
ProcessingDetails details)
RpcScheduleraddResponseTime in interface RpcSchedulercallName - The name of the call.schedulable - The schedulable representing the incoming call.details - The details of processing time.public void stop()
stop in interface RpcSchedulerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.