com.sentilla.net.rpc
Class RemoteInvoker.ResultIter<T>

java.lang.Object
  extended by com.sentilla.net.rpc.RemoteInvoker.ResultIter<T>
All Implemented Interfaces:
Result<T>, Iterable<Result<T>>, Iterator<Result<T>>
Enclosing class:
RemoteInvoker

protected class RemoteInvoker.ResultIter<T>
extends Object
implements Iterable<Result<T>>, Iterator<Result<T>>, Result<T>


Constructor Summary
RemoteInvoker.ResultIter(Class<T> result_type, int maxResults, int timeoutMilli)
           
 
Method Summary
 T getResult()
          Return the result of a Procedure.
 boolean hasNext()
           
 Iterator<Result<T>> iterator()
           
 Result<T> next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteInvoker.ResultIter

public RemoteInvoker.ResultIter(Class<T> result_type,
                                int maxResults,
                                int timeoutMilli)
Method Detail

iterator

public Iterator<Result<T>> iterator()
Specified by:
iterator in interface Iterable<Result<T>>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Result<T>>

next

public Result<T> next()
Specified by:
next in interface Iterator<Result<T>>

getResult

public T getResult()
Description copied from interface: Result
Return the result of a Procedure. Rethrow a runtime error locally if one occurred remotely.

Specified by:
getResult in interface Result<T>

remove

public void remove()
Specified by:
remove in interface Iterator<Result<T>>


Copyright © 2007 Sentilla Corporation. All Rights Reserved.