Class GrpcMetaDataAwareSerializer

java.lang.Object
org.axonframework.axonserver.connector.event.axon.GrpcMetaDataAwareSerializer
All Implemented Interfaces:
org.axonframework.serialization.Serializer

public final class GrpcMetaDataAwareSerializer extends Object implements org.axonframework.serialization.Serializer
Wrapper around standard Axon Framework serializer that can deserialize Metadata from AxonServer events.
Since:
4.0
Author:
Marc Gathier
  • Constructor Details

    • GrpcMetaDataAwareSerializer

      public GrpcMetaDataAwareSerializer(org.axonframework.serialization.Serializer delegate)
      Constructs a GrpcMetaDataAwareSerializer, using the given delegate to delegate serialization to
      Parameters:
      delegate - the Serializer to delegate serialization to
  • Method Details

    • serialize

      public <T> org.axonframework.serialization.SerializedObject<T> serialize(Object object, @Nonnull Class<T> expectedRepresentation)
      Specified by:
      serialize in interface org.axonframework.serialization.Serializer
    • canSerializeTo

      public <T> boolean canSerializeTo(@Nonnull Class<T> expectedRepresentation)
      Specified by:
      canSerializeTo in interface org.axonframework.serialization.Serializer
    • deserialize

      public <S, T> T deserialize(@Nonnull org.axonframework.serialization.SerializedObject<S> serializedObject)
      Specified by:
      deserialize in interface org.axonframework.serialization.Serializer
    • classForType

      public Class classForType(@Nonnull org.axonframework.serialization.SerializedType type)
      Specified by:
      classForType in interface org.axonframework.serialization.Serializer
    • typeForClass

      public org.axonframework.serialization.SerializedType typeForClass(Class type)
      Specified by:
      typeForClass in interface org.axonframework.serialization.Serializer
    • getConverter

      public org.axonframework.serialization.Converter getConverter()
      Specified by:
      getConverter in interface org.axonframework.serialization.Serializer
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object