Class ObjectMetadata
-
- All Implemented Interfaces:
public final class ObjectMetadataEverything about an object other than its name and its bytes
The name is not here: it is the parameter the store is asked to write under (eu.vstoyanov.natsy.jetstream.ObjectStore.put, eu.vstoyanov.natsy.jetstream.ObjectStore.putFile). A name in both places is a name that can disagree with itself, and jnats keys the whole write off the one in the metadata (
io/nats/client/impl/NatsObjectStore.java:71,:93,:128) - so the object would be stored under one and reported under the other.
-
-
Field Summary
Fields Modifier and Type Field Description public final static IntegerDEFAULT_CHUNK_SIZEprivate final Stringdescriptionprivate final Headersheadersprivate final IntegerchunkSize
-
Constructor Summary
Constructors Constructor Description ObjectMetadata(String description, Headers headers, Integer chunkSize)
-
Method Summary
Modifier and Type Method Description final StringgetDescription()Optional description of the object final HeadersgetHeaders()Optional headers to attach to the object final IntegergetChunkSize()Chunk size for streaming (default: 128KB) -
-
Method Detail
-
getDescription
final String getDescription()
Optional description of the object
-
getHeaders
final Headers getHeaders()
Optional headers to attach to the object
-
getChunkSize
final Integer getChunkSize()
Chunk size for streaming (default: 128KB)
-
-
-
-