AeroGear Android Library 1.1.0

org.jboss.aerogear.android.pipeline
Interface LoaderPipe<T>

All Superinterfaces:
Pipe<T>
All Known Implementing Classes:
LoaderAdapter, SupportLoaderAdapter

public interface LoaderPipe<T>
extends Pipe<T>

Sometimes a Pipe will actually be wrapped in a Loader. Classes which do so implement this interface and have certain methods like reset exposed.


Field Summary
static String CALLBACK
          Bundle key for callbacks handed to Pipe methods.
static String FILTER
          Bundle key for the ReadFilter param
static String ITEM
          Bundle key for the item to be saved
static String METHOD
          Bundle key for the Pipe method which was called
static String REMOVE_ID
          Bundle key for the id of the item to remove
 
Method Summary
 void reset()
          Calls reset on all loaders associated with this pipe.
 void setLoaderIds(com.google.common.collect.Multimap<String,Integer> idsForNamedPipes)
          Passes in a multimap of ids for the named pipe.
 
Methods inherited from interface org.jboss.aerogear.android.pipeline.Pipe
getGson, getHandler, getKlass, getRequestBuilder, getResponseParser, getType, getUrl, read, read, readWithFilter, remove, save
 

Field Detail

CALLBACK

static final String CALLBACK
Bundle key for callbacks handed to Pipe methods.

See Also:
Constant Field Values

METHOD

static final String METHOD
Bundle key for the Pipe method which was called

See Also:
Constant Field Values

FILTER

static final String FILTER
Bundle key for the ReadFilter param

See Also:
Constant Field Values

ITEM

static final String ITEM
Bundle key for the item to be saved

See Also:
Constant Field Values

REMOVE_ID

static final String REMOVE_ID
Bundle key for the id of the item to remove

See Also:
Constant Field Values
Method Detail

reset

void reset()
Calls reset on all loaders associated with this pipe.


setLoaderIds

void setLoaderIds(com.google.common.collect.Multimap<String,Integer> idsForNamedPipes)
Passes in a multimap of ids for the named pipe. LoaderPipe should manage this collection.

Parameters:
idsForNamedPipes -

AeroGear Android Library 1.1.0

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.