Class StreamMetadata

java.lang.Object
com.eventstore.dbclient.StreamMetadata

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

    • StreamMetadata

      public StreamMetadata()
  • Method Details

    • getMaxAge

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

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

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

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

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

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

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

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

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object