Class StreamMetadata


  • public class StreamMetadata
    extends java.lang.Object
    Represents stream metadata with strongly typed properties for system values and a dictionary-like interface for custom values.
    • Constructor Summary

      Constructors 
      Constructor Description
      StreamMetadata()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)  
      Acl getAcl()
      The Access Control List of the stream (ACL).
      java.lang.Long getCacheControl()
      The amount of time for which the stream head is cacheable (in seconds).
      java.util.Map<java.lang.String,​java.lang.Object> getCustomProperties()
      An enumerable of key-value pairs of keys to JSON text for user-provider metadata.
      java.lang.Long getMaxAge()
      The maximum age of events allowed in the stream.
      java.lang.Long getMaxCount()
      The maximum number of events allowed in the stream.
      java.lang.Long getTruncateBefore()
      The event number from which previous events can be scavenged.
      int hashCode()  
      void setAcl​(Acl acl)
      The Access Control List of the stream (ACL).
      void setCacheControl​(java.lang.Long cacheControl)
      The amount of time for which the stream head is cacheable (in seconds).
      void setCustomProperties​(java.util.Map<java.lang.String,​java.lang.Object> customProperties)
      An enumerable of key-value pairs of keys to JSON text for user-provider metadata.
      void setMaxAge​(java.lang.Long maxAge)
      The maximum age of events allowed in the stream.
      void setMaxCount​(java.lang.Long maxCount)
      The maximum number of events allowed in the stream.
      void setTruncateBefore​(java.lang.Long truncateBefore)
      The event number from which previous events can be scavenged.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • StreamMetadata

        public StreamMetadata()
    • Method Detail

      • getMaxAge

        public java.lang.Long getMaxAge()
        The maximum age of events allowed in the stream.
      • setMaxAge

        public void setMaxAge​(java.lang.Long maxAge)
        The maximum age of events allowed in the stream.
      • getTruncateBefore

        public java.lang.Long getTruncateBefore()
        The event number from which previous events can be scavenged. This is used to implement deletion of streams.
      • setTruncateBefore

        public void setTruncateBefore​(java.lang.Long truncateBefore)
        The event number from which previous events can be scavenged. This is used to implement deletion of streams.
      • getCacheControl

        public java.lang.Long getCacheControl()
        The amount of time for which the stream head is cacheable (in seconds).
      • setCacheControl

        public void setCacheControl​(java.lang.Long cacheControl)
        The amount of time for which the stream head is cacheable (in seconds).
      • getAcl

        public Acl getAcl()
        The Access Control List of the stream (ACL).
      • setAcl

        public void setAcl​(Acl acl)
        The Access Control List of the stream (ACL).
      • getMaxCount

        public java.lang.Long getMaxCount()
        The maximum number of events allowed in the stream.
      • setMaxCount

        public void setMaxCount​(java.lang.Long maxCount)
        The maximum number of events allowed in the stream.
      • getCustomProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getCustomProperties()
        An enumerable of key-value pairs of keys to JSON text for user-provider metadata.
      • setCustomProperties

        public void setCustomProperties​(java.util.Map<java.lang.String,​java.lang.Object> customProperties)
        An enumerable of key-value pairs of keys to JSON text for user-provider metadata.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object