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