Interface LowLevelProcessor<A,V>

All Known Implementing Classes:
Memoizer

public interface LowLevelProcessor<A,V>
Able to process computable tasks.

Use Processor for higher-level processors that do not propagate InterruptedException.

  • Method Summary

    Modifier and Type
    Method
    Description
    compute(ComputableTask<A,V> c, A taskArg)
    Waits if necessary for the computation to complete, and then retrieves its result.
  • Method Details

    • compute

      V compute(ComputableTask<A,V> c, A taskArg) throws InterruptedException
      Waits if necessary for the computation to complete, and then retrieves its result.
      Parameters:
      taskArg - argument for computation
      Throws:
      InterruptedException - if the current thread was interrupted while waiting