[infinispan-dev] Defining new commands in modules

Manik Surtani manik at jboss.org
Mon Oct 25 09:06:20 EDT 2010


On 25 Oct 2010, at 13:59, Mircea Markus wrote:

> 
> On 25 Oct 2010, at 13:57, Manik Surtani wrote:
> 
>> 
>> On 25 Oct 2010, at 13:25, Mircea Markus wrote:
>> 
>>>> ?  What's so hard about this?  "implements Externabilzable" is the easy way, @Marshallable() a slightly more roundabout way for greater efficiency in marshalling.
>>> what about managing unique command numbers?
>> 
>> That's only if you use @Marshallable.  Implementing Externalizable doesn't have this issue.  And there is a unit test that tests for duplicate command IDs (if the command is a part of the Infinispan src tree)
> Yes, unique command ids is my concern.

http://fisheye.jboss.org/browse/Infinispan/branches/4.2.x/core/src/test/java/org/infinispan/commands/CommandIdUniquenessTest.java?r=935#l14

--
Manik Surtani
manik at jboss.org
Lead, Infinispan
Lead, JBoss Cache
http://www.infinispan.org
http://www.jbosscache.org







More information about the infinispan-dev mailing list