Module org.elasticsearch.server
Package org.elasticsearch.rest.action
Class RestRefCountedChunkedToXContentListener<Response extends ChunkedToXContent & RefCounted>
java.lang.Object
org.elasticsearch.rest.action.RestActionListener<Response>
org.elasticsearch.rest.action.RestChunkedToXContentListener<Response>
org.elasticsearch.rest.action.RestRefCountedChunkedToXContentListener<Response>
- All Implemented Interfaces:
ActionListener<Response>
public class RestRefCountedChunkedToXContentListener<Response extends ChunkedToXContent & RefCounted>
extends RestChunkedToXContentListener<Response>
Same as
RestChunkedToXContentListener but decrements the ref count on the response it receives by one after serialization of the
response.-
Field Summary
Fields inherited from class org.elasticsearch.rest.action.RestActionListener
channel -
Constructor Summary
ConstructorsConstructorDescriptionRestRefCountedChunkedToXContentListener(RestChannel channel, ToXContent.Params params) -
Method Summary
Methods inherited from class org.elasticsearch.rest.action.RestChunkedToXContentListener
getRestStatus, processResponseMethods inherited from class org.elasticsearch.rest.action.RestActionListener
ensureOpen, onFailure, onResponseMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateFailureAndWrap, delegateFailureIgnoreResponseAndWrap, delegateResponse, map, safeMap
-
Constructor Details
-
RestRefCountedChunkedToXContentListener
-
RestRefCountedChunkedToXContentListener
-
-
Method Details
-
releasableFromResponse
- Overrides:
releasableFromResponsein classRestChunkedToXContentListener<Response extends ChunkedToXContent & RefCounted>
-