Class ProgressiveProviderFuture

java.lang.Object
org.apache.qpid.jms.provider.ProviderFuture
org.apache.qpid.jms.provider.ProgressiveProviderFuture
All Implemented Interfaces:
AsyncResult

public class ProgressiveProviderFuture extends ProviderFuture
An optimized version of a ProviderFuture that makes use of spin waits and other methods of reacting to asynchronous completion in a more timely manner.
  • Constructor Details

    • ProgressiveProviderFuture

      public ProgressiveProviderFuture()
    • ProgressiveProviderFuture

      public ProgressiveProviderFuture(ProviderSynchronization synchronization)
  • Method Details

    • sync

      public boolean sync(long amount, TimeUnit unit) throws ProviderException
      Description copied from class: ProviderFuture
      Timed wait for a response to a Provider operation.
      Specified by:
      sync in class ProviderFuture
      Parameters:
      amount - The amount of time to wait before abandoning the wait.
      unit - The unit to use for this wait period.
      Returns:
      true if the operation succeeded and false if the waiting time elapsed while waiting for the operation to complete.
      Throws:
      ProviderException - if an error occurs while waiting for the response.
    • sync

      public void sync() throws ProviderException
      Description copied from class: ProviderFuture
      Waits for a response to some Provider requested operation.
      Specified by:
      sync in class ProviderFuture
      Throws:
      ProviderException - if an error occurs while waiting for the response.