[jboss-jira] [JBoss JIRA] Commented: (JGRP-1141) RspList: use generics

Bela Ban (JIRA) jira-events at lists.jboss.org
Tue May 24 03:36:00 EDT 2011


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

Bela Ban commented on JGRP-1141:
--------------------------------

OK, added a field 'exception' to Rsp. If an exception is thrown in the target method and this is a unicast RPC, the exception will be thrown. If we have a multicast RPC, Rsp.getException() will return the exception and Rsp.getValue() will return null.

> RspList: use generics
> ---------------------
>
>                 Key: JGRP-1141
>                 URL: https://issues.jboss.org/browse/JGRP-1141
>             Project: JGroups
>          Issue Type: Task
>            Reporter: Bela Ban
>            Assignee: Bela Ban
>            Priority: Minor
>             Fix For: 3.0
>
>
> e.g. 
> {code}
> RspList<Integer> list=disp.callRemoteMethods(....);
> for(Rsp<Integer> rsp: rsps) {
>      int counter=rsp.getValue();
> }
> {code}

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

        


More information about the jboss-jira mailing list