io.vertx.core.eventbus.SendContext Maven / Gradle / Ivy
package io.vertx.core.eventbus;
import io.vertx.codegen.annotations.VertxGen;
/**
*
* Encapsulates a message being sent from Vert.x. Used with event bus interceptors
*
* @author Tim Fox
*/
@VertxGen
public interface SendContext {
/**
* @return The message being sent
*/
Message message();
/**
* Call the next interceptor
*/
void next();
/**
*
* @return true if the message is being sent (point to point) or False if the message is being published
*/
boolean send();
}