Class GrpcSerializedObject
java.lang.Object
org.axonframework.axonserver.connector.util.GrpcSerializedObject
- All Implemented Interfaces:
SerializedObject<byte[]>
Wrapper that allows clients to access a gRPC
SerializedObject message as a SerializedObject.- Since:
- 4.0
- Author:
- Sara Pellegrini
-
Constructor Summary
ConstructorsConstructorDescriptionGrpcSerializedObject(io.axoniq.axonserver.grpc.SerializedObject serializedObject) -
Method Summary
-
Constructor Details
-
GrpcSerializedObject
public GrpcSerializedObject(io.axoniq.axonserver.grpc.SerializedObject serializedObject) - Parameters:
serializedObject- aSerializedObjectwhich will be wrapped as aSerializedObject
-
-
Method Details
-
getContentType
Description copied from interface:SerializedObjectReturns the type of this representation's data.- Specified by:
getContentTypein interfaceSerializedObject<byte[]>- Returns:
- the type of this representation's data
-
getType
Description copied from interface:SerializedObjectReturns the description of the type of object contained in the data.- Specified by:
getTypein interfaceSerializedObject<byte[]>- Returns:
- the description of the type of object contained in the data
-
getData
public byte[] getData()Description copied from interface:SerializedObjectThe actual data of the serialized object.- Specified by:
getDatain interfaceSerializedObject<byte[]>- Returns:
- the actual data of the serialized object
-