All Downloads are FREE. Search and download functionalities are using the official Maven repository.

flux.RabbitMQTrigger Maven / Gradle / Ivy

package flux;

import java.io.Serializable;

/**
 * RabbitMQTrigger that consumes message from AMQP channel.
 * This works with AMQP server that implements 0-9-1 version
 * of the specification.
 *
 * @author [email protected]
 */
public interface RabbitMQTrigger extends RabbitMQ, Trigger {

  /**
   * Sets the delay that occurs between message polling. Defaults to +5s, five seconds.
   *
   * @param timeExpression the delay that occurs between message polling.
   */
  public void setPollingDelay(String timeExpression);

  /**
   * The response from the RabbitMQTrigger.
   */
  public class RabbitMQTriggerResult implements Serializable, Cloneable {
    /**
     * Message consumed by this trigger.
     */
    public String message;

    public Object clone() throws CloneNotSupportedException {
      return super.clone();
    } // clone()

    public String toString() {
      return super.toString();
    } // toString()
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy