Class SpoutResult

java.lang.Object
overit.geocall.event.model.SpoutResult

public class SpoutResult extends Object
Represents the result of a spout processing, including details about the target, the result of the spout's execution, and any error information.
  • Constructor Details

  • Method Details

    • getSpout

      public Class<?> getSpout()
    • getTarget

      public String getTarget()
    • getResult

      public Future<MessageResult> getResult()
    • hasError

      public boolean hasError()
      Checks if the result contains an error. If the result is not available, the method block the execution in order to wait the acknowledgment from the Message Broker
      Returns:
      true if the result contains an error; false otherwise.
    • getMessageResult

      public MessageResult getMessageResult()
      Gets the MessageResult of the spout. If the result is not available, the method block the execution in order to wait the acknowledgment from the Message Broker
      Returns:
      the MessageResult.