public class

NfpRequestState

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

Class Overview

Used by NetworkFetchProducer to encapsulate the state of one network request and its response.

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

Summary

Public Constructors
NfpRequestState(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 NfpRequestState (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)