Interface ResultReceiver


public interface ResultReceiver
This interface allows the code to optionally pass a value between two parts of the application.
Author:
Jiri Pechanec
  • Method Details

    • deliver

      void deliver(Object o)
      Send the object to the receiver.
      Parameters:
      o - - object to be delivered
    • hasReceived

      boolean hasReceived()
      Returns:
      true if a value has been sent to the receiver
    • get

      Object get()
      Returns:
      the object sent to the receiver
    • create

      static ResultReceiver create()
      Returns:
      default, not thread-safe implementation of the receiver