Class ResponseMessage

java.lang.Object
com.iohao.net.framework.protocol.CommonMessage
com.iohao.net.framework.protocol.ResponseMessage
All Implemented Interfaces:
CommonResponse, FutureMessage, RemoteMessage, Response, UserIdentity

public final class ResponseMessage extends CommonMessage implements Response
Internal response message used for logic-to-logic server communication via Aeron.

Extends CommonMessage and implements Response to provide typed data extraction from the serialized payload. Carries user identity and error information alongside the decoded response data.

Since:
25.1
Author:
渔民小镇
date:
2025-09-03
  • Constructor Details

    • ResponseMessage

      public ResponseMessage()
  • Method Details

    • getValue

      public <T> T getValue(Class<T> clazz)
      Decode the response payload into the specified type.
      Specified by:
      getValue in interface Response
      Type Parameters:
      T - the target type
      Parameters:
      clazz - the class to decode into
      Returns:
      the decoded object
    • listValue

      public <T> List<T> listValue(Class<? extends T> clazz)
      Decode the response payload into a list of the specified element type.
      Specified by:
      listValue in interface Response
      Type Parameters:
      T - the element type
      Parameters:
      clazz - the element class to decode into
      Returns:
      a list of decoded objects