public class

FetchState

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.producers.FetchState

Class Overview

Used by NetworkFetcher to encapsulate the state of one network fetch.

Implementations can subclass this to store additional fetch-scoped fields.

Summary

Public Constructors
FetchState(Consumer<CloseableReference<PooledByteBuffer>> consumer, ProducerContext context)
Public Methods
Consumer<CloseableReference<PooledByteBuffer>> getConsumer()
ProducerContext getContext()
String getId()
long getLastIntermediateResultTimeMs()
ProducerListener getListener()
Uri getUri()
void setLastIntermediateResultTimeMs(long lastIntermediateResultTimeMs)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public FetchState (Consumer<CloseableReference<PooledByteBuffer>> consumer, ProducerContext context)

Public Methods

public Consumer<CloseableReference<PooledByteBuffer>> getConsumer ()

public ProducerContext getContext ()

public String getId ()

public long getLastIntermediateResultTimeMs ()

public ProducerListener getListener ()

public Uri getUri ()

public void setLastIntermediateResultTimeMs (long lastIntermediateResultTimeMs)