org.springframework.data.mongodb.core.messaging

Interface Task

    • Method Detail

      • isActive

        default boolean isActive()
        Returns:
        true if the task is currently running.
      • getState

        Task.State getState()
        Get the current lifecycle phase.
        Returns:
        never null.
      • awaitStart

        boolean awaitStart(Duration timeout)
                    throws InterruptedException
        Synchronous, blocking call that awaits until this Task becomes active.
        Parameters:
        timeout - must not be null.
        Returns:
        true if the task was started. false if the waiting time elapsed before task was started.
        Throws:
        InterruptedException - if the current thread is interrupted while waiting.