public class InstagramEngagersCollector extends InstagramDataCollector<UserInfo>
Modifier and Type | Field and Description |
---|---|
protected static int |
MAX_ATTEMPTS |
backOffStrategy, dataQueue, instagram, isCompleted
Constructor and Description |
---|
InstagramEngagersCollector(Instagram instagram,
Queue<StreamsDatum> queue,
InstagramEngagersProviderConfiguration config) |
Modifier and Type | Method and Description |
---|---|
protected StreamsDatum |
convertToStreamsDatum(UserInfo item)
Takes an Instagram Object and sets it as the document of a streams datum and sets the id of the streams datum.
|
void |
run() |
getNextInstagramClient, isCompleted, numAvailableTokens, queueData, swapUsernameForId
protected static final int MAX_ATTEMPTS
public InstagramEngagersCollector(Instagram instagram, Queue<StreamsDatum> queue, InstagramEngagersProviderConfiguration config)
public void run()
protected StreamsDatum convertToStreamsDatum(UserInfo item)
InstagramDataCollector
convertToStreamsDatum
in class InstagramDataCollector<UserInfo>
item
- itemCopyright © 2018 The Apache Software Foundation. All rights reserved.