MessageHandler.Whole (WebSocket 2.2 API Documentation - Apache Tomcat 11.0.23)
Description: declaration: package: jakarta.websocket, interface: MessageHandler, interface: Whole

# Interface MessageHandler.Whole<T>

Type Parameters:
  `T` - The type of message data

All Superinterfaces:
  `MessageHandler`

Enclosing interface:
  `MessageHandler`

public static interface MessageHandler.Whole<T> extends MessageHandler
A message handler that receives whole (complete) messages. The handler is called once per WebSocket message.

- ## Nested Class Summary

  ### Nested classes/interfaces inherited from interface MessageHandler

  `MessageHandler.Partial<T>, MessageHandler.Whole<T>`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `onMessage(T message)`
  Called when a whole message is available to be processed.

- ## Method Details

  - ### onMessage

    void onMessage(T message)
    Called when a whole message is available to be processed.
    Parameters:
      `message` - The message