[infinispan-dev] command id duplicated

Mircea Markus mircea.markus at jboss.com
Wed Sep 1 10:58:52 EDT 2010


Hi,

Looks like a command can uniquely be identified by two ids. E.g. 

@Marshallable(externalizer = ReplicableCommandExternalizer.class, id = Ids.REMOVE_COMMAND)
public class RemoveCommand extends AbstractDataWriteCommand {
  ...
   public static final byte COMMAND_ID = 10;

  ...

It has an Marshallable id and an command id. Can't we just use one of them? Ids.REMOVE_COMMAND is my favourite as this way one can see the ids for all commands in a single place.

Cheers,
Mircea




More information about the infinispan-dev mailing list