Class Callback

java.lang.Object
io.quarkus.websockets.next.deployment.Callback

public class Callback extends Object
Represents either an endpoint callback or a global error handler.
  • Field Details

    • target

      public final Callback.Target target
    • endpointPath

      public final String endpointPath
    • annotation

      public final org.jboss.jandex.AnnotationInstance annotation
    • bean

      public final io.quarkus.arc.processor.BeanInfo bean
    • method

      public final org.jboss.jandex.MethodInfo method
    • executionModel

      public final io.quarkus.websockets.next.runtime.WebSocketEndpoint.ExecutionModel executionModel
    • messageType

      public final Callback.MessageType messageType
    • arguments

      public final List<CallbackArgument> arguments
  • Constructor Details

    • Callback

      public Callback(Callback.Target target, org.jboss.jandex.AnnotationInstance annotation, io.quarkus.arc.processor.BeanInfo bean, org.jboss.jandex.MethodInfo method, io.quarkus.websockets.next.runtime.WebSocketEndpoint.ExecutionModel executionModel, CallbackArgumentsBuildItem callbackArguments, io.quarkus.arc.deployment.TransformedAnnotationsBuildItem transformedAnnotations, String endpointPath, org.jboss.jandex.IndexView index)
  • Method Details

    • isGlobal

      public boolean isGlobal()
    • isClient

      public boolean isClient()
    • isServer

      public boolean isServer()
    • isOnOpen

      public boolean isOnOpen()
    • isOnClose

      public boolean isOnClose()
    • isOnError

      public boolean isOnError()
    • returnType

      public org.jboss.jandex.Type returnType()
    • messageParamType

      public org.jboss.jandex.Type messageParamType()
    • isReturnTypeVoid

      public boolean isReturnTypeVoid()
    • isReturnTypeUni

      public boolean isReturnTypeUni()
    • isReturnTypeMulti

      public boolean isReturnTypeMulti()
    • isKotlinSuspendFunction

      public boolean isKotlinSuspendFunction()
    • isKotlinSuspendFunctionReturningUnit

      public boolean isKotlinSuspendFunctionReturningUnit()
    • acceptsMessage

      public boolean acceptsMessage()
    • acceptsBinaryMessage

      public boolean acceptsBinaryMessage()
    • acceptsMulti

      public boolean acceptsMulti()
    • messageType

      public Callback.MessageType messageType()
    • broadcast

      public boolean broadcast()
    • getInputCodec

      public org.jboss.jandex.DotName getInputCodec()
    • getOutputCodec

      public org.jboss.jandex.DotName getOutputCodec()
    • asString

      public String asString()
    • generateArguments

      public io.quarkus.gizmo2.Expr[] generateArguments(io.quarkus.gizmo2.creator.BlockCreator bc, io.quarkus.gizmo2.Expr endpointThis, io.quarkus.gizmo2.Var payload, io.quarkus.arc.deployment.TransformedAnnotationsBuildItem transformedAnnotations, org.jboss.jandex.IndexView index)
    • argumentType

      org.jboss.jandex.Type argumentType(Predicate<CallbackArgument> filter)