Class AbstractAsanaObjectFetcher
java.lang.Object
org.apache.nifi.processors.asana.utils.AbstractAsanaObjectFetcher
- All Implemented Interfaces:
AsanaObjectFetcher
- Direct Known Subclasses:
AsanaProjectEventFetcher,GenericAsanaObjectFetcher
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCall this method to wipe out all the state information of this object fetcher.protected abstract Iterator<AsanaObject> fetch()Call this method to retrieve the next unprocessed object from Asana.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.nifi.processors.asana.utils.AsanaObjectFetcher
loadState, saveState
-
Field Details
-
pending
-
-
Constructor Details
-
AbstractAsanaObjectFetcher
public AbstractAsanaObjectFetcher()
-
-
Method Details
-
fetchNext
Description copied from interface:AsanaObjectFetcherCall this method to retrieve the next unprocessed object from Asana. The returnedAsanaObjectcontains the object in Json formatted string, and information about its ID and whether it is new, updated, or removed.- Specified by:
fetchNextin interfaceAsanaObjectFetcher- Returns:
- null if there are no more unprocessed objects at the moment,
AsanaObjectotherwise.
-
clearState
public void clearState()Description copied from interface:AsanaObjectFetcherCall this method to wipe out all the state information of this object fetcher. As if it was brand-new.- Specified by:
clearStatein interfaceAsanaObjectFetcher
-
fetch
-