Interface ChunkedToXContent

All Known Subinterfaces:
ChunkedToXContentObject, ClusterState.Custom, Metadata.Custom
All Known Implementing Classes:
BaseNodesXContentResponse, ChunkedBroadcastResponse, ClusterRerouteResponse, ClusterState, ComponentTemplateMetadata, ComposableIndexTemplateMetadata, DataStreamMetadata, DesiredBalanceResponse, DesiredNodesMetadata, Diagnosis, Diagnosis.Resource, ElasticsearchNodeCommand.UnknownMetadataCustom, FeatureMigrationResults, FieldCapabilitiesResponse, FieldUsageStatsResponse, GetHealthAction.Response, GetIndexResponse, GetMappingsResponse, GetSettingsResponse, GetSnapshotsResponse, HealthIndicatorResult, HealthMetadata, HttpStats, IndexGraveyard, IndicesSegmentResponse, IndicesShardStoresResponse, IndicesStatsResponse, IngestMetadata, IngestStats, Metadata, NodeIndicesStats, NodesShutdownMetadata, NodesStatsResponse, NodeStats, PendingClusterTasksResponse, PersistentTasksCustomMetadata, RecoveryResponse, RepositoriesMetadata, RepositoryCleanupInProgress, RestoreInProgress, ScriptMetadata, SnapshotDeletionsInProgress, SnapshotsInProgress, SnapshotsStatusResponse, SnapshotStatus, TransportStats

public interface ChunkedToXContent
An alternative to ToXContent allowing for progressive serialization by creating an Iterator of ToXContent chunks.

The REST layer only serializes enough chunks at once to keep an outbound buffer full, rather than consuming all the time and memory needed to serialize the entire response as must be done with the regular ToXContent responses.