Package io.grpc.xds

Class FaultFilter.DelayInjectedCall<ReqT,​RespT>

  • Enclosing class:
    FaultFilter

    private final class FaultFilter.DelayInjectedCall<ReqT,​RespT>
    extends io.grpc.internal.DelayedClientCall<ReqT,​RespT>
    A DelayedClientCall with a fixed delay.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class io.grpc.ClientCall

        io.grpc.ClientCall.Listener<T extends java.lang.Object>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) boolean cancelled  
      (package private) java.util.concurrent.ScheduledFuture<?> delayTask  
      (package private) java.lang.Object lock  
    • Constructor Summary

      Constructors 
      Constructor Description
      DelayInjectedCall​(long delayNanos, java.util.concurrent.Executor callExecutor, java.util.concurrent.ScheduledExecutorService scheduler, io.grpc.Deadline deadline, com.google.common.base.Supplier<? extends io.grpc.ClientCall<ReqT,​RespT>> callSupplier)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void callCancelled()  
      • Methods inherited from class io.grpc.internal.DelayedClientCall

        cancel, getAttributes, halfClose, isReady, request, sendMessage, setCall, setMessageCompression, start, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • lock

        final java.lang.Object lock
      • delayTask

        java.util.concurrent.ScheduledFuture<?> delayTask
      • cancelled

        boolean cancelled
    • Constructor Detail

      • DelayInjectedCall

        DelayInjectedCall​(long delayNanos,
                          java.util.concurrent.Executor callExecutor,
                          java.util.concurrent.ScheduledExecutorService scheduler,
                          @Nullable
                          io.grpc.Deadline deadline,
                          com.google.common.base.Supplier<? extends io.grpc.ClientCall<ReqT,​RespT>> callSupplier)
    • Method Detail

      • callCancelled

        protected void callCancelled()
        Overrides:
        callCancelled in class io.grpc.internal.DelayedClientCall<ReqT,​RespT>