Class ObjectMetadata

  • All Implemented Interfaces:

    
    public final class ObjectMetadata
    
                        

    Everything 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final String getDescription() Optional description of the object
      final Headers getHeaders() Optional headers to attach to the object
      final Integer getChunkSize() Chunk size for streaming (default: 128KB)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ObjectMetadata

        ObjectMetadata(String description, Headers headers, Integer chunkSize)