Class AbstractAsanaObjectFetcher

java.lang.Object
org.apache.nifi.processors.asana.utils.AbstractAsanaObjectFetcher
All Implemented Interfaces:
AsanaObjectFetcher
Direct Known Subclasses:
AsanaProjectEventFetcher, GenericAsanaObjectFetcher

public abstract class AbstractAsanaObjectFetcher extends Object implements AsanaObjectFetcher
  • Field Details

  • Constructor Details

    • AbstractAsanaObjectFetcher

      public AbstractAsanaObjectFetcher()
  • Method Details

    • fetchNext

      public AsanaObject fetchNext()
      Description copied from interface: AsanaObjectFetcher
      Call this method to retrieve the next unprocessed object from Asana. The returned AsanaObject contains the object in Json formatted string, and information about its ID and whether it is new, updated, or removed.
      Specified by:
      fetchNext in interface AsanaObjectFetcher
      Returns:
      null if there are no more unprocessed objects at the moment, AsanaObject otherwise.
    • clearState

      public void clearState()
      Description copied from interface: AsanaObjectFetcher
      Call this method to wipe out all the state information of this object fetcher. As if it was brand-new.
      Specified by:
      clearState in interface AsanaObjectFetcher
    • fetch

      protected abstract Iterator<AsanaObject> fetch()