Interface CallbackArgument

All Known Implementing Classes:
CloseReasonCallbackArgument, ConnectionCallbackArgument, ErrorCallbackArgument, HandshakeRequestCallbackArgument, KotlinContinuationCallbackArgument, MessageCallbackArgument, PathParamCallbackArgument

interface CallbackArgument
Provides arguments for method parameters of a callback method declared on a WebSocket endpoint.
  • Field Details

  • Method Details

    • matches

      boolean matches(CallbackArgument.ParameterContext context)
      Parameters:
      context -
      Returns:
      true if this provider matches the given parameter context, false otherwise
      Throws:
      io.quarkus.websockets.next.WebSocketException - If an invalid parameter is detected
    • get

      io.quarkus.gizmo2.Expr get(CallbackArgument.InvocationBytecodeContext context)
      This method is only used if matches(ParameterContext) previously returned true for the same parameter context.
      Parameters:
      context -
      Returns:
      the result handle to be passed as an argument to a callback method
    • priority

      default int priority()
      Returns:
      the priority