mandala.rami.impl
Class ResultsGrouper

java.lang.Object
  extended bymandala.rami.impl.ResultsGrouper
All Implemented Interfaces:
Callback, java.io.Serializable

public class ResultsGrouper
extends java.lang.Object
implements Callback, java.io.Serializable

Groups asynchronous method invocation results.

Version:
1.0
Author:
eipi
See Also:
Callback, AsynchronousReference, CallbackManager, Serialized Form

Nested Class Summary
 class ResultsGrouper.TerminatedCall
           
 
Field Summary
protected  java.util.LinkedList list
          The results list.
 
Constructor Summary
ResultsGrouper()
          Creates a new ResultsGrouper instance.
 
Method Summary
 void done(InvocationInfo invocationInfo, MethodResult methodResult)
          This method is called once an asynchronous method invocation had been considered terminated.
 java.lang.String toString()
           
 ResultsGrouper.TerminatedCall waitFirst()
           
 ResultsGrouper.TerminatedCall[] waitFirst(int n)
           
 ResultsGrouper.TerminatedCall[] waitFirst(int n, long timeout)
           
 ResultsGrouper.TerminatedCall waitFirst(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

list

protected java.util.LinkedList list

The results list.

Constructor Detail

ResultsGrouper

public ResultsGrouper()

Creates a new ResultsGrouper instance.

Method Detail

done

public void done(InvocationInfo invocationInfo,
                 MethodResult methodResult)
Description copied from interface: Callback

This method is called once an asynchronous method invocation had been considered terminated.

Specified by:
done in interface Callback
Parameters:
invocationInfo - the invocationInfo object representing informations on the asychronous method invocation.
methodResult - the MethodResult object representing the result of the asychronous method invocation.
See Also:
InvocationInfo, MethodResult

waitFirst

public ResultsGrouper.TerminatedCall waitFirst()
                                        throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitFirst

public ResultsGrouper.TerminatedCall waitFirst(long timeout)
                                        throws TimedOutException,
                                               java.lang.InterruptedException
Throws:
TimedOutException
java.lang.InterruptedException

waitFirst

public ResultsGrouper.TerminatedCall[] waitFirst(int n)
                                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitFirst

public ResultsGrouper.TerminatedCall[] waitFirst(int n,
                                                 long timeout)
                                          throws TimedOutException,
                                                 java.lang.InterruptedException
Throws:
TimedOutException
java.lang.InterruptedException

toString

public java.lang.String toString()


Mandala help mailing list