[infinispan-issues] [JBoss JIRA] Commented: (ISPN-1008) Conditional replace/remove not returning previous value in Java Hot Rod client

Manik Surtani (JIRA) jira-events at lists.jboss.org
Thu May 12 10:21:31 EDT 2011


    [ https://issues.jboss.org/browse/ISPN-1008?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12601682#comment-12601682 ] 

Manik Surtani commented on ISPN-1008:
-------------------------------------

I think this is fine as it is.  If someone needs the previous value returned, we will see requests for it and at that time we can add it to the Java client.

> Conditional replace/remove not returning previous value in Java Hot Rod client
> ------------------------------------------------------------------------------
>
>                 Key: ISPN-1008
>                 URL: https://issues.jboss.org/browse/ISPN-1008
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Cache Server
>    Affects Versions: 4.2.1.FINAL, 5.0.0.ALPHA3
>            Reporter: Galder Zamarreño
>            Assignee: Mircea Markus
>
> The following RemoteCache APIs (and their variants) are not correctly defined:
> boolean replaceWithVersion(K key, V newValue, long version);
> boolean removeWithVersion(K key, long version);
> The protocol allows for the previous value to be returned if Flag.FORCE_RETURN_VALUE is used, and these APIs do not accomodate that.
> We should think whether it makes sense to keep the protocol as is. Does returning previous value help at all with conditional operations like these?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list