Class Callback
java.lang.Object
io.quarkus.websockets.next.deployment.Callback
Represents either an endpoint callback or a global error handler.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal org.jboss.jandex.AnnotationInstancefinal List<CallbackArgument> final io.quarkus.arc.processor.BeanInfofinal Stringfinal io.quarkus.websockets.next.runtime.WebSocketEndpoint.ExecutionModelfinal Callback.MessageTypefinal org.jboss.jandex.MethodInfofinal Callback.Target -
Constructor Summary
ConstructorsConstructorDescriptionCallback(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 Summary
Modifier and TypeMethodDescriptionbooleanbooleanboolean(package private) org.jboss.jandex.TypeargumentType(Predicate<CallbackArgument> filter) asString()booleanio.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) org.jboss.jandex.DotNameorg.jboss.jandex.DotNamebooleanisClient()booleanisGlobal()booleanbooleanbooleanbooleanbooleanisOnOpen()booleanbooleanbooleanbooleanisServer()org.jboss.jandex.Typeorg.jboss.jandex.Type
-
Field Details
-
target
-
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
-
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
-
broadcast
public boolean broadcast() -
getInputCodec
public org.jboss.jandex.DotName getInputCodec() -
getOutputCodec
public org.jboss.jandex.DotName getOutputCodec() -
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
-