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.Integer getCacheControl()
      The amount of time for which the stream head is cacheable (in seconds).
      java.util.HashMap<java.lang.String,​java.lang.Object> getCustomProperties()
      An enumerable of key-value pairs of keys to JSON text for user-provider metadata.
      java.lang.Integer getMaxAge()
      The maximum age of events allowed in the stream.
      java.lang.Integer getMaxCount()
      The maximum number of events allowed in the stream.
      java.lang.Integer 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.Integer cacheControl)
      The amount of time for which the stream head is cacheable (in seconds).
      void setCustomProperties​(java.util.HashMap<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.Integer maxAge)
      The maximum age of events allowed in the stream.
      void setMaxCount​(java.lang.Integer maxCount)
      The maximum number of events allowed in the stream.
      void setTruncateBefore​(java.lang.Integer truncateBefore)
      The event number from which previous events can be scavenged.
      • Methods inherited from class java.lang.Object

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

      • StreamMetadata

        public StreamMetadata()
    • Method Detail

      • getMaxAge

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

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

        public java.lang.Integer 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.Integer truncateBefore)
        The event number from which previous events can be scavenged. This is used to implement deletion of streams.
      • getCacheControl

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

        public void setCacheControl​(java.lang.Integer 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.Integer getMaxCount()
        The maximum number of events allowed in the stream.
      • setMaxCount

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

        public java.util.HashMap<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.HashMap<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