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.InvocableCallback, 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.Chunk
current
-
Fields inherited from interface org.eclipse.jetty.util.thread.Invocable
__nonBlocking
-
-
Constructor Summary
Constructors Modifier Constructor Description private
DeferredContentProviderIterator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
failed(java.lang.Throwable x)
Callback invoked when the operation fails.java.lang.Object
getLock()
boolean
hasNext()
java.nio.ByteBuffer
next()
void
remove()
void
succeeded()
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:
hasNext
in interfacejava.util.Iterator<java.nio.ByteBuffer>
-
next
public java.nio.ByteBuffer next()
- Specified by:
next
in interfacejava.util.Iterator<java.nio.ByteBuffer>
-
remove
public void remove()
- Specified by:
remove
in interfacejava.util.Iterator<java.nio.ByteBuffer>
-
succeeded
public void succeeded()
Description copied from interface:Callback
Callback invoked when the operation completes.
- Specified by:
succeeded
in interfaceCallback
- See Also:
Callback.failed(Throwable)
-
failed
public void failed(java.lang.Throwable x)
Description copied from interface:Callback
Callback invoked when the operation fails.
-
getLock
public java.lang.Object getLock()
- Specified by:
getLock
in interfaceSynchronizable
- Returns:
- the lock object to synchronize on
-
-