@InterfaceAudience.LimitedPrivate(value={"Coprocesssor","Phoenix"}) @InterfaceStability.Evolving public class CallRunner extends Object
RpcScheduler
. Call run()
to actually execute the contained RpcServer.CallModifier and Type | Field and Description |
---|---|
private RpcCall |
call |
private static CallDroppedException |
CALL_DROPPED_EXCEPTION |
private RpcServerInterface |
rpcServer |
private io.opentelemetry.api.trace.Span |
span |
private MonitoredRPCHandler |
status |
private boolean |
successful |
Constructor and Description |
---|
CallRunner(RpcServerInterface rpcServer,
RpcCall call)
On construction, adds the size of this call to the running count of outstanding call sizes.
|
Modifier and Type | Method and Description |
---|---|
private void |
cleanup()
Cleanup after ourselves...
|
void |
drop()
When we want to drop this call because of server is overloaded.
|
RpcCall |
getRpcCall() |
void |
run() |
void |
setStatus(MonitoredRPCHandler status) |
private static final CallDroppedException CALL_DROPPED_EXCEPTION
private RpcServerInterface rpcServer
private MonitoredRPCHandler status
private final io.opentelemetry.api.trace.Span span
private volatile boolean successful
CallRunner(RpcServerInterface rpcServer, RpcCall call)
public RpcCall getRpcCall()
public void setStatus(MonitoredRPCHandler status)
private void cleanup()
public void run()
public void drop()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.