Class EventConsumerBusinessMethodItem

java.lang.Object
io.quarkus.builder.item.BuildItem
io.quarkus.builder.item.MultiBuildItem
io.quarkus.vertx.deployment.EventConsumerBusinessMethodItem

public final class EventConsumerBusinessMethodItem extends io.quarkus.builder.item.MultiBuildItem
  • Constructor Summary

    Constructors
    Constructor
    Description
    EventConsumerBusinessMethodItem(io.quarkus.arc.processor.BeanInfo bean, org.jboss.jandex.AnnotationInstance consumeEvent, boolean blockingAnnotation, boolean runOnVirtualThreadAnnotation, boolean splitHeadersBodyParams, io.quarkus.arc.processor.InvokerInfo invoker)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    io.quarkus.arc.processor.BeanInfo
    Returns the bean that declares this event consumer method.
    org.jboss.jandex.AnnotationInstance
    Returns the ConsumeEvent annotation declared on this event consumer method.
    io.quarkus.arc.processor.InvokerInfo
    Returns the invoker for this event consumer method.
    boolean
    Returns whether this event consumer method declares the Blocking annotation.
    boolean
    Returns whether this event consumer method declares the RunOnVirtualThread annotation.
    boolean
    Returns whether this event consumer method declares 2 parameters, where the first is the event headers and the second is the event body.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • EventConsumerBusinessMethodItem

      public EventConsumerBusinessMethodItem(io.quarkus.arc.processor.BeanInfo bean, 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 the ConsumeEvent annotation declared on this event consumer method.
    • isBlockingAnnotation

      public boolean isBlockingAnnotation()
      Returns whether this event consumer method declares the Blocking annotation.
    • isRunOnVirtualThreadAnnotation

      public boolean isRunOnVirtualThreadAnnotation()
      Returns whether this event consumer method declares the RunOnVirtualThread annotation.
    • 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, the EventConsumerInvoker has to split the headers and body parameters explicitly.
    • getInvoker

      public io.quarkus.arc.processor.InvokerInfo getInvoker()
      Returns the invoker for this event consumer method.