Interface StatePoller.Poller<S>

  • Enclosing class:
    StatePoller<S,​F extends java.lang.Enum<F>>
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public static interface StatePoller.Poller<S>
    Custom poller.
    • Method Detail

      • nextPoll

        void nextPoll​(long delay,
                      StatePollContext<S> context,
                      FlowCallback callback)
        Invoked to setup the next poll.
        Parameters:
        delay - Delay for poll. Will be 0 for start up (first) poll for state.
        context - StatePollContext.
        callback - FlowCallback to invoke on completion of the custom poll.