Class GrpcSerializedObject

java.lang.Object
org.axonframework.axonserver.connector.util.GrpcSerializedObject
All Implemented Interfaces:
SerializedObject<byte[]>

public class GrpcSerializedObject extends Object implements SerializedObject<byte[]>
Wrapper that allows clients to access a gRPC SerializedObject message as a SerializedObject.
Since:
4.0
Author:
Sara Pellegrini
  • Constructor Details

    • GrpcSerializedObject

      public GrpcSerializedObject(io.axoniq.axonserver.grpc.SerializedObject serializedObject)
      Initialize a GrpcSerializedObject, wrapping a SerializedObject as a SerializedObject.
      Parameters:
      serializedObject - a SerializedObject which will be wrapped as a SerializedObject
  • Method Details

    • getContentType

      public Class<byte[]> getContentType()
      Description copied from interface: SerializedObject
      Returns the type of this representation's data.
      Specified by:
      getContentType in interface SerializedObject<byte[]>
      Returns:
      the type of this representation's data
    • getType

      public SerializedType getType()
      Description copied from interface: SerializedObject
      Returns the description of the type of object contained in the data.
      Specified by:
      getType in interface SerializedObject<byte[]>
      Returns:
      the description of the type of object contained in the data
    • getData

      public byte[] getData()
      Description copied from interface: SerializedObject
      The actual data of the serialized object.
      Specified by:
      getData in interface SerializedObject<byte[]>
      Returns:
      the actual data of the serialized object