Class GrpcObjectSerializer<O>

java.lang.Object
org.axonframework.axonserver.connector.util.GrpcObjectSerializer<O>
All Implemented Interfaces:
Function<O,io.axoniq.axonserver.grpc.SerializedObject>

public class GrpcObjectSerializer<O> extends Object implements Function<O,io.axoniq.axonserver.grpc.SerializedObject>
Mapping that translates an object into a GRPC SerializedObject.
Since:
4.0
Author:
Sara Pellegrini
  • Constructor Details

    • GrpcObjectSerializer

      public GrpcObjectSerializer(Serializer serializer)
      Constructs a GrpcObjectSerializer using the given serializer to serialize the payload and type of given objects with.
      Parameters:
      serializer - the Serializer used to serialize the payload and type of given objects with
  • Method Details

    • apply

      public io.axoniq.axonserver.grpc.SerializedObject apply(O o)
      Specified by:
      apply in interface Function<O,io.axoniq.axonserver.grpc.SerializedObject>