Interface Poller.PollTask<TT>

  • Enclosing class:
    Poller<T>

    public static interface Poller.PollTask<TT>
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      TT poll()
      Pollers should shade or wrap all java.lang.InterruptedExceptions and raise Thread.interrupted() flag.
    • Method Detail

      • poll

        TT poll()
        Pollers should shade or wrap all java.lang.InterruptedExceptions and raise Thread.interrupted() flag. This follows GRPC stubs approach, see io.grpc.stub.ClientCalls#blockingUnaryCall. Because pollers use GRPC stubs anyway, we chose this implementation for consistency. The caller of the poll task is responsible for handling the flag.
        Returns:
        result of the task