java.lang.Object |
↳ |
com.facebook.datasource.BaseBooleanSubscriber |
Class Overview
Base implementation of DataSubscriber
that ensures that the data source is closed when
the subscriber has finished with it.
Sample usage:
imagePipeline.isInDiskCache(
uri,
new BaseBooleanSubscriber() {
public void onNewResultImpl(boolean isFound) {
// caller's code here
}
});
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
From interface
com.facebook.datasource.DataSubscriber
abstract
void
|
onCancellation(DataSource<T> dataSource)
Called whenever the request is cancelled (a request being cancelled means that is was closed
before it finished).
|
abstract
void
|
onFailure(DataSource<T> dataSource)
Called whenever an error occurs inside of the pipeline.
|
abstract
void
|
onNewResult(DataSource<T> dataSource)
Called whenever a new value is ready to be retrieved from the DataSource.
|
abstract
void
|
onProgressUpdate(DataSource<T> dataSource)
Called when the progress updates.
|
|
Public Constructors
public
BaseBooleanSubscriber
()
Public Methods
public
void
onCancellation
(DataSource<Boolean> dataSource)
public
void
onFailure
(DataSource<Boolean> dataSource)
public
void
onNewResult
(DataSource<Boolean> dataSource)
public
void
onProgressUpdate
(DataSource<Boolean> dataSource)
Protected Methods
protected
abstract
void
onFailureImpl
(DataSource<Boolean> dataSource)
protected
abstract
void
onNewResultImpl
(boolean isFoundInDisk)