public class AsanaProjectEventFetcher extends AbstractAsanaObjectFetcher
| Modifier and Type | Field and Description |
|---|---|
private AsanaClient |
client |
private static String |
NEXT_SYNC_TOKEN |
private String |
nextSyncToken |
private com.asana.models.Project |
project |
private static String |
PROJECT_GID |
| Constructor and Description |
|---|
AsanaProjectEventFetcher(AsanaClient client,
String projectName) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearState()
Call this method to wipe out all the state information of this object fetcher.
|
protected Iterator<AsanaObject> |
fetch() |
void |
loadState(Map<String,String> state)
Call this method to deserialize & restore a state that was saved/exported earlier.
|
Map<String,String> |
saveState()
Call this method to serialize this object fetcher's state.
|
fetchNextprivate static final String PROJECT_GID
private static final String NEXT_SYNC_TOKEN
private final AsanaClient client
private final com.asana.models.Project project
private String nextSyncToken
public AsanaProjectEventFetcher(AsanaClient client, String projectName)
public Map<String,String> saveState()
AsanaObjectFetcherMap containing the object state in key-value pairs. Optimized for using it with
StateManagerpublic void loadState(Map<String,String> state)
AsanaObjectFetcherstate - A Map containing all the key-value pairs returned by a prior call to saveState().public void clearState()
AsanaObjectFetcherclearState in interface AsanaObjectFetcherclearState in class AbstractAsanaObjectFetcherprotected Iterator<AsanaObject> fetch()
fetch in class AbstractAsanaObjectFetcherCopyright © 2024 Apache NiFi Project. All rights reserved.