Package org.eclipse.jetty.client.util
Class DeferredContentProvider.DeferredContentProviderIterator
- java.lang.Object
-
- org.eclipse.jetty.client.util.DeferredContentProvider.DeferredContentProviderIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.nio.ByteBuffer>,Synchronizable,Callback,Invocable
- Enclosing class:
- DeferredContentProvider
private class DeferredContentProvider.DeferredContentProviderIterator extends java.lang.Object implements java.util.Iterator<java.nio.ByteBuffer>, Callback, Synchronizable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Callback
Callback.Completable, Callback.Completing, Callback.Nested
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.thread.Invocable
Invocable.InvocationType
-
-
Field Summary
Fields Modifier and Type Field Description private DeferredContentProvider.Chunkcurrent-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Modifier Constructor Description privateDeferredContentProviderIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfailed(java.lang.Throwable x)Callback invoked when the operation fails.java.lang.ObjectgetLock()booleanhasNext()java.nio.ByteBuffernext()voidremove()voidsucceeded()Callback invoked when the operation completes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.jetty.util.thread.Invocable
getInvocationType
-
-
-
-
Field Detail
-
current
private DeferredContentProvider.Chunk current
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.nio.ByteBuffer>
-
next
public java.nio.ByteBuffer next()
- Specified by:
nextin interfacejava.util.Iterator<java.nio.ByteBuffer>
-
remove
public void remove()
- Specified by:
removein interfacejava.util.Iterator<java.nio.ByteBuffer>
-
succeeded
public void succeeded()
Description copied from interface:CallbackCallback invoked when the operation completes.
- Specified by:
succeededin interfaceCallback- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Description copied from interface:CallbackCallback invoked when the operation fails.
-
getLock
public java.lang.Object getLock()
- Specified by:
getLockin interfaceSynchronizable- Returns:
- the lock object to synchronize on
-
-