Package io.vertx.mutiny.core.eventbus
Class DeliveryContext<T>
java.lang.Object
io.vertx.mutiny.core.eventbus.DeliveryContext<T>
- All Implemented Interfaces:
MutinyDelegate
Encapsulates a message being delivered by Vert.x as well as providing control over the message delivery.
Used with event bus interceptors.
NOTE: This class has been automatically generated from the original non Mutiny-ified interface.
- Author:
- Tim Fox
- See Also:
-
DeliveryContext
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDeliveryContext(io.vertx.core.eventbus.DeliveryContext<T> delegate) Create a new instance ofDeliveryContextdelegating to the given (non-null) instance ofDeliveryContext.DeliveryContext(io.vertx.core.eventbus.DeliveryContext<T> delegate, TypeArg<T> typeArg_0) DeliveryContext(Object delegate, TypeArg<T> typeArg_0) -
Method Summary
Modifier and TypeMethodDescriptionbody()booleanio.vertx.core.eventbus.DeliveryContext<T>Get the delegate instance.inthashCode()message()static <T> DeliveryContext<T>newInstance(io.vertx.core.eventbus.DeliveryContext<T> delegate) Creates a new instance of theDeliveryContext.static <T> DeliveryContext<T>newInstance(io.vertx.core.eventbus.DeliveryContext<T> delegate, TypeArg<T> typeArg_0) Creates a new instance of theDeliveryContext.voidnext()Call the next interceptorbooleansend()toString()
-
Field Details
-
__TYPE_ARG
-
__typeArg_0
-
-
Constructor Details
-
DeliveryContext
Create a new instance ofDeliveryContextdelegating to the given (non-null) instance ofDeliveryContext. -
DeliveryContext
-
DeliveryContext
-
-
Method Details
-
getDelegate
Get the delegate instance.This method returns the instance on which this shim is delegating the calls. And so, give you access to the bare API.
- Specified by:
getDelegatein interfaceMutinyDelegate- Returns:
- the delegate instance
-
message
- Returns:
- The message being delivered
-
next
public void next()Call the next interceptor -
send
public boolean send()- Returns:
- true if the message is being sent (point to point) or False if the message is being published
-
body
- Returns:
- the value delivered by the message (before or after being processed by the codec)
-
newInstance
public static <T> DeliveryContext<T> newInstance(io.vertx.core.eventbus.DeliveryContext<T> delegate) Creates a new instance of theDeliveryContext. -
newInstance
public static <T> DeliveryContext<T> newInstance(io.vertx.core.eventbus.DeliveryContext<T> delegate, TypeArg<T> typeArg_0) Creates a new instance of theDeliveryContext. -
hashCode
public int hashCode() -
equals
-
toString
-