[jboss-jira] [JBoss JIRA] (JGRP-1687) CastMessageWithFuture in MessageDispatcher

Bela Ban (JIRA) jira-events at lists.jboss.org
Thu Sep 5 03:51:03 EDT 2013


     [ https://issues.jboss.org/browse/JGRP-1687?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bela Ban updated JGRP-1687:
---------------------------

             Fix Version/s: 4.0
    Workaround Description: Force the downcast in the listener to RspList<T>.


You're right. However, I cannot change this now as this breaks existing client code using the listener. I will fix this in 4.0 (where API changes are allowed).

The change involves the listener in MessageDispatcher and RpcDispatcher.

Note: add a test case to RpcDispatcherTest which grabs the results in the listener and checks if they're right.
                
> CastMessageWithFuture in MessageDispatcher 
> -------------------------------------------
>
>                 Key: JGRP-1687
>                 URL: https://issues.jboss.org/browse/JGRP-1687
>             Project: JGroups
>          Issue Type: Bug
>            Reporter: shen kim
>            Assignee: Bela Ban
>             Fix For: 4.0
>
>
> When I used CastMessageWithFuture in MessageDispatcher. I found the following Method declared :
> public <T> NotifyingFuture<RspList<T>> castMessageWithFuture(java.util.Collection<Address> dests, Message  RequestOptions options, FutureListener<T> listener) throws java.lang.Exception
> Is it the FutureListener<T> may be declared to  FutureListener<RspList<T>> ?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list