public class ClearScrollResponse extends ActionResponse implements StatusToXContent
TransportResponse.EmptyToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsheadersEMPTY_PARAMS| Constructor and Description |
|---|
ClearScrollResponse(boolean succeeded,
int numFreed) |
| Modifier and Type | Method and Description |
|---|---|
int |
getNumFreed() |
boolean |
isSucceeded() |
void |
readFrom(StreamInput in) |
RestStatus |
status()
Returns the REST status to make sure it is returned correctly
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
void |
writeTo(StreamOutput out) |
remoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic boolean isSucceeded()
public int getNumFreed()
0 the assumption can be made,
that the scroll id specified in the request did not exist. (never existed, was expired, or completely consumed)public RestStatus status()
StatusToXContentstatus in interface StatusToXContentpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent in interface ToXContentIOExceptionpublic void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class ActionResponseIOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class ActionResponseIOExceptionCopyright © 2009–2017. All rights reserved.