Class GrpcChannel.Call<Q,R>
java.lang.Object
com.codename1.backend.grpc.GrpcChannel.Call<Q,R>
- Type Parameters:
Q- request typeR- response type
- All Implemented Interfaces:
Iterator<R>
- Enclosing class:
GrpcChannel
-
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Cancels the call when it has not ended, and releases it.voidcomplete()Ends the request stream.booleanhasNext()Returns whether there are more elements to iterate, i.e.next()Returns the next object in the iteration, i.e.voidremove()Removes the last elementnextanswered from the collection being iterated, which this iterator does not support unless it says otherwise.voidSends one request message.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterator
forEachRemaining
-
Method Details
-
send
-
complete
public void complete()Ends the request stream. -
close
public void close()Cancels the call when it has not ended, and releases it. -
getHeaders
-
getTrailers
-
hasNext
public boolean hasNext()Description copied from interface:IteratorReturns whether there are more elements to iterate, i.e. whether the iterator is positioned in front of an element.
Returns
trueif there are more elements,falseotherwise.See also
- #next
-
next
Description copied from interface:IteratorReturns the next object in the iteration, i.e. returns the element in front of the iterator and advances the iterator by one position.
Returns
the next object.
Throws
NoSuchElementException: if there are no more elements.
See also
- #hasNext
-
remove
public void remove()Description copied from interface:IteratorRemoves the last element
nextanswered from the collection being iterated, which this iterator does not support unless it says otherwise.Throws
-
UnsupportedOperationException: when removing is not supported -
IllegalStateException: whennexthas not been called, orremovehas already been called after the last call tonext
-
-