Package org.zeromq

Interface ZStar.Exit

All Known Implementing Classes:
ZStar.Plateau
Enclosing class:
ZStar

public static interface ZStar.Exit
Control for the end of the remote operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Causes the current thread to wait in blocking mode until the end of the remote operations, unless the thread is interrupted.
    boolean
    await(long timeout, TimeUnit unit)
    Causes the current thread to wait in blocking mode until the end of the remote operations, unless the thread is interrupted, or the specified waiting time elapses.
    void
    Causes the current thread to wait in blocking mode until the end of the remote operations.
    boolean
    Checks in non-blocking mode, if the remote operations have ended.
  • Method Details

    • awaitSilent

      void awaitSilent()
      Causes the current thread to wait in blocking mode until the end of the remote operations.
    • await

      void await() throws InterruptedException
      Causes the current thread to wait in blocking mode until the end of the remote operations, unless the thread is interrupted.

      If the current thread:

      • has its interrupted status set on entry to this method; or
      • is interrupted while waiting,
      then InterruptedException is thrown and the current thread's interrupted status is cleared.
      Throws:
      InterruptedException - if the current thread is interrupted while waiting
    • await

      boolean await(long timeout, TimeUnit unit) throws InterruptedException
      Causes the current thread to wait in blocking mode until the end of the remote operations, unless the thread is interrupted, or the specified waiting time elapses.

      If the current thread:

      • has its interrupted status set on entry to this method; or
      • is interrupted while waiting,
      then InterruptedException is thrown and the current thread's interrupted status is cleared.

      If the specified waiting time elapses then the value false is returned. If the time is less than or equal to zero, the method will not wait at all.

      Parameters:
      timeout - the maximum time to wait
      unit - the time unit of the timeout argument
      Returns:
      true if the remote operations ended and false if the waiting time elapsed before the remote operations ended
      Throws:
      InterruptedException - if the current thread is interrupted while waiting
    • isExited

      boolean isExited()
      Checks in non-blocking mode, if the remote operations have ended.
      Returns:
      true if the runnable where the remote operations occurred if finished, otherwise false.