Package io.temporal.internal.worker
Interface Poller.PollTask<TT>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TT
poll()
Pollers should shade or wrap alljava.lang.InterruptedException
s and raiseThread.interrupted()
flag.
-
-
-
Method Detail
-
poll
TT poll()
Pollers should shade or wrap alljava.lang.InterruptedException
s and raiseThread.interrupted()
flag. This follows GRPC stubs approach, seeio.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
-
-