Package io.quarkus.vertx.deployment
Class EventConsumerBusinessMethodItem
java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.vertx.deployment.EventConsumerBusinessMethodItem
- All Implemented Interfaces:
Comparable<EventConsumerBusinessMethodItem>
public final class EventConsumerBusinessMethodItem
extends io.quarkus.builder.item.MultiBuildItem
implements Comparable<EventConsumerBusinessMethodItem>
-
Constructor Summary
ConstructorsConstructorDescriptionEventConsumerBusinessMethodItem(io.quarkus.arc.processor.BeanInfo bean, org.jboss.jandex.MethodInfo method, org.jboss.jandex.AnnotationInstance consumeEvent, boolean blockingAnnotation, boolean runOnVirtualThreadAnnotation, boolean splitHeadersBodyParams, io.quarkus.arc.processor.InvokerInfo invoker) -
Method Summary
Modifier and TypeMethodDescriptionintio.quarkus.arc.processor.BeanInfogetBean()Returns the bean that declares this event consumer method.org.jboss.jandex.AnnotationInstanceReturns theConsumeEventannotation declared on this event consumer method.io.quarkus.arc.processor.InvokerInfoReturns the invoker for this event consumer method.org.jboss.jandex.MethodInfoReturns the event consumer method.booleanReturns whether this event consumer method declares theBlockingannotation.booleanReturns whether this event consumer method declares theRunOnVirtualThreadannotation.booleanReturns whether this event consumer method declares 2 parameters, where the first is the event headers and the second is the event body.
-
Constructor Details
-
EventConsumerBusinessMethodItem
public EventConsumerBusinessMethodItem(io.quarkus.arc.processor.BeanInfo bean, org.jboss.jandex.MethodInfo method, org.jboss.jandex.AnnotationInstance consumeEvent, boolean blockingAnnotation, boolean runOnVirtualThreadAnnotation, boolean splitHeadersBodyParams, io.quarkus.arc.processor.InvokerInfo invoker)
-
-
Method Details
-
getBean
public io.quarkus.arc.processor.BeanInfo getBean()Returns the bean that declares this event consumer method. -
getConsumeEvent
public org.jboss.jandex.AnnotationInstance getConsumeEvent()Returns theConsumeEventannotation declared on this event consumer method. -
getMethod
public org.jboss.jandex.MethodInfo getMethod()Returns the event consumer method. -
isBlockingAnnotation
public boolean isBlockingAnnotation()Returns whether this event consumer method declares theBlockingannotation. -
isRunOnVirtualThreadAnnotation
public boolean isRunOnVirtualThreadAnnotation()Returns whether this event consumer method declares theRunOnVirtualThreadannotation. -
isSplitHeadersBodyParams
public boolean isSplitHeadersBodyParams()Returns whether this event consumer method declares 2 parameters, where the first is the event headers and the second is the event body. In this case, theEventConsumerInvokerhas to split the headers and body parameters explicitly. -
getInvoker
public io.quarkus.arc.processor.InvokerInfo getInvoker()Returns the invoker for this event consumer method. -
compareTo
- Specified by:
compareToin interfaceComparable<EventConsumerBusinessMethodItem>
-