public class QueryResultPusher.StreamingHttpResponseAccumulator extends Object implements Accumulator<javax.ws.rs.core.Response,Object>, Closeable
| Constructor and Description |
|---|
StreamingHttpResponseAccumulator(ResponseContext responseContext,
QueryResultPusher.ResultsWriter resultsWriter) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
accumulate(javax.ws.rs.core.Response retVal,
Object in) |
void |
close() |
void |
flush() |
long |
getNumBytesSent() |
void |
initialize()
Initializes the response.
|
boolean |
isInitialized() |
public StreamingHttpResponseAccumulator(ResponseContext responseContext, QueryResultPusher.ResultsWriter resultsWriter)
public long getNumBytesSent()
public boolean isInitialized()
public void initialize()
It is okay for this to be called multiple times.
@Nullable public javax.ws.rs.core.Response accumulate(javax.ws.rs.core.Response retVal, Object in)
accumulate in interface Accumulator<javax.ws.rs.core.Response,Object>public void flush()
throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2011–2023 The Apache Software Foundation. All rights reserved.