public class PulledInteractions extends BaseDataSiftResult implements Iterable<Interaction>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
pulling |
protected LinkedBlockingQueue<Interaction> |
queue |
error, response| Constructor and Description |
|---|
PulledInteractions() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
add(Interaction interaction) |
boolean |
isPulling() |
Iterator<Interaction> |
iterator() |
void |
setPulling(boolean pulling) |
void |
stopPulling() |
Interaction |
take() |
Interaction |
take(long upto,
TimeUnit unit) |
failed, failureCause, getError, getResponse, isAuthorizationSuccesful, isSuccessful, rateLimit, rateLimitCost, rateLimitRemaining, setResponse, successful, toStringprotected boolean pulling
protected LinkedBlockingQueue<Interaction> queue
public void setPulling(boolean pulling)
public void stopPulling()
public boolean isPulling()
public Interaction take() throws InterruptedException
InterruptedExceptionpublic Interaction take(long upto, TimeUnit unit) throws InterruptedException
InterruptedExceptionpublic Iterator<Interaction> iterator()
iterator in interface Iterable<Interaction>protected void add(Interaction interaction)
Copyright © 2015. All Rights Reserved.