public class PullReader extends io.higgs.http.client.readers.Reader<String>
| Modifier and Type | Field and Description |
|---|---|
protected int |
backOff |
protected String |
currentCursor |
protected String |
format |
static String |
FORMAT_ARRAY |
static String |
FORMAT_META |
static String |
FORMAT_NEW_LINE |
static String |
HEADER_CURRENT_CURSOR |
static String |
HEADER_FORMAT |
static String |
HEADER_NEXT_CURSOR |
protected String |
nextCursor |
protected PulledInteractions |
queue |
protected int |
status |
protected int |
successiveNoContent |
| Constructor and Description |
|---|
PullReader(PulledInteractions queue) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkHeaders() |
protected boolean |
checkResponseStatus() |
void |
data(io.netty.buffer.ByteBuf data) |
void |
done() |
protected String |
getDataAsString() |
void |
onHeaders(io.netty.handler.codec.http.HttpHeaders headers) |
void |
onStatus(io.netty.handler.codec.http.HttpResponseStatus status) |
protected void |
processData() |
protected void |
readArray() |
protected void |
readLineByLine() |
protected void |
readObject() |
void |
reset() |
protected void |
send(Interaction interaction) |
public static final String HEADER_NEXT_CURSOR
public static final String HEADER_CURRENT_CURSOR
public static final String HEADER_FORMAT
public static final String FORMAT_ARRAY
public static final String FORMAT_META
public static final String FORMAT_NEW_LINE
protected String currentCursor
protected String nextCursor
protected String format
protected final PulledInteractions queue
protected int status
protected int backOff
protected int successiveNoContent
public PullReader(PulledInteractions queue)
public void onStatus(io.netty.handler.codec.http.HttpResponseStatus status)
onStatus in class io.higgs.http.client.readers.Reader<String>protected boolean checkResponseStatus()
public void onHeaders(io.netty.handler.codec.http.HttpHeaders headers)
onHeaders in class io.higgs.http.client.readers.Reader<String>protected void checkHeaders()
public void data(io.netty.buffer.ByteBuf data)
data in class io.higgs.http.client.readers.Reader<String>public void done()
done in class io.higgs.http.client.readers.Reader<String>protected void processData()
protected void send(Interaction interaction)
protected void readObject()
protected void readArray()
protected void readLineByLine()
protected String getDataAsString()
public void reset()
Copyright © 2015. All Rights Reserved.