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
-
Method Summary
Methods inherited from class org.elasticsearch.rest.action.RestChunkedToXContentListener
getRestStatus, processResponse
Methods inherited from class org.elasticsearch.rest.action.RestActionListener
ensureOpen, onFailure, onResponse
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.action.ActionListener
delegateFailure, delegateFailureAndWrap, delegateResponse, map, safeMap
-
Constructor Details
-
RestRefCountedChunkedToXContentListener
-
-
Method Details
-
releasableFromResponse
- Overrides:
releasableFromResponse
in classRestChunkedToXContentListener<Response extends ChunkedToXContent & RefCounted>
-