Annotation Type CrdtEntity
@Target(TYPE) @Retention(RUNTIME) public @interface CrdtEntityA CRDT backed entity.
Only one CRDT may be created, it is important that before creating a CRDT, the entity should check whether the CRDT has already been created, for example, it may have been created on another node and replicated to this node. To check, either use the
CrdtContext.state(Class)method, which can be injected into the constructor or any
CommandHandlermethod, or have an instance of the CRDT wrapped in
Optionalinjected into the constructor or command handler methods.