public class ClearScrollResponse extends ActionResponse implements StatusToXContent
TransportResponse.Empty
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
headers
EMPTY_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, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public 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()
StatusToXContent
status
in interface StatusToXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
toXContent
in interface ToXContent
IOException
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class ActionResponse
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class ActionResponse
IOException
Copyright © 2009–2016. All rights reserved.