Class RequestCacheStats
java.lang.Object
org.opensearch.client.opensearch._types.RequestCacheStats
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RequestCacheStats.Builder,RequestCacheStats>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RequestCacheStats
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<RequestCacheStats.Builder,RequestCacheStats>
The statistics about request cache operations.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RequestCacheStats> Json deserializer forRequestCacheStats -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestCacheStats.Builderbuilder()booleanfinal longRequired - The number of request cache evictions.inthashCode()final longhitCount()Required - The number of request cache hits.final StringThe size of the request cache in a human-readable format.final longRequired - The size of the request cache in bytes.final longRequired - The number of request cache misses.static RequestCacheStatsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRequestCacheStats
-
-
Method Details
-
of
public static RequestCacheStats of(Function<RequestCacheStats.Builder, ObjectBuilder<RequestCacheStats>> fn) -
evictions
public final long evictions()Required - The number of request cache evictions.API name:
evictions -
hitCount
public final long hitCount()Required - The number of request cache hits.API name:
hit_count -
memorySize
The size of the request cache in a human-readable format.API name:
memory_size -
memorySizeInBytes
public final long memorySizeInBytes()Required - The size of the request cache in bytes.API name:
memory_size_in_bytes -
missCount
public final long missCount()Required - The number of request cache misses.API name:
miss_count -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RequestCacheStats.Builder,RequestCacheStats> - Returns:
- a new builder instance.
-
builder
-
setupRequestCacheStatsDeserializer
protected static void setupRequestCacheStatsDeserializer(ObjectDeserializer<RequestCacheStats.Builder> op) -
hashCode
public int hashCode() -
equals
-