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