org.springframework.data.mongodb.core.messaging

Interface Subscription

    • Method Detail

      • isActive

        boolean isActive()
        Returns:
        true if the subscription is currently executed.
      • await

        boolean await(Duration timeout)
               throws InterruptedException
        Synchronous, blocking call returns once the Subscription becomes active or timeout exceeds.
        Parameters:
        timeout - must not be null.
        Returns:
        true if the subscription was activated. false if the waiting time elapsed before task was activated.
        Throws:
        InterruptedException - if the current thread is interrupted while waiting.