C - a generic specifying the payload type of the wrapped CommandMessagepublic class GrpcBackedCommandMessage<C> extends Object implements org.axonframework.commandhandling.CommandMessage<C>
Command as a CommandMessage.| Constructor and Description |
|---|
GrpcBackedCommandMessage(io.axoniq.axonserver.grpc.command.Command command,
org.axonframework.serialization.Serializer serializer)
Instantiate a
GrpcBackedCommandMessage with the given command and using the provided Serializer to be able to retrieve the payload and MetaData from it. |
| Modifier and Type | Method and Description |
|---|---|
GrpcBackedCommandMessage<C> |
andMetaData(Map<String,?> metaData) |
String |
getCommandName() |
String |
getIdentifier() |
org.axonframework.messaging.MetaData |
getMetaData() |
C |
getPayload() |
Class<C> |
getPayloadType() |
GrpcBackedCommandMessage<C> |
withMetaData(Map<String,?> metaData) |
public GrpcBackedCommandMessage(io.axoniq.axonserver.grpc.command.Command command,
org.axonframework.serialization.Serializer serializer)
GrpcBackedCommandMessage with the given command and using the provided Serializer to be able to retrieve the payload and MetaData from it.command - the Command which is being wrapped as a CommandMessageserializer - the Serializer used to deserialize the payload and MetaData from the given
commandpublic String getCommandName()
getCommandName in interface org.axonframework.commandhandling.CommandMessage<C>public String getIdentifier()
getIdentifier in interface org.axonframework.messaging.Message<C>public org.axonframework.messaging.MetaData getMetaData()
getMetaData in interface org.axonframework.messaging.Message<C>public C getPayload()
getPayload in interface org.axonframework.messaging.Message<C>public Class<C> getPayloadType()
getPayloadType in interface org.axonframework.messaging.Message<C>public GrpcBackedCommandMessage<C> withMetaData(@Nonnull Map<String,?> metaData)
Copyright © 2010–2024. All rights reserved.