Package io.grpc.internal
Class ClientCallImpl.CancellationHandler
java.lang.Object
io.grpc.internal.ClientCallImpl.CancellationHandler
- All Implemented Interfaces:
Context.CancellationListener
,Runnable
- Enclosing class:
ClientCallImpl<ReqT,
RespT>
private final class ClientCallImpl.CancellationHandler
extends Object
implements Runnable, Context.CancellationListener
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final boolean
private ScheduledFuture
<?> private final boolean
private final long
private boolean
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
contextIsDeadlineSource
private final boolean contextIsDeadlineSource -
hasDeadline
private final boolean hasDeadline -
remainingNanos
private final long remainingNanos -
deadlineCancellationFuture
-
tearDownCalled
private volatile boolean tearDownCalled
-
-
Constructor Details
-
CancellationHandler
CancellationHandler(Deadline deadline, boolean contextIsDeadlineSource)
-
-
Method Details
-
setUp
void setUp() -
tearDown
void tearDown() -
cancelled
Description copied from interface:Context.CancellationListener
Notifies that a context was cancelled.- Specified by:
cancelled
in interfaceContext.CancellationListener
- Parameters:
context
- the newly cancelled context.
-
run
public void run() -
formatDeadlineExceededStatus
Status formatDeadlineExceededStatus()
-