Package com.eventstore.dbclient
Class StreamMetadata
- java.lang.Object
-
- com.eventstore.dbclient.StreamMetadata
-
public class StreamMetadata extends java.lang.ObjectRepresents 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 booleanequals(java.lang.Object o)AclgetAcl()The Access Control List of the stream (ACL).java.lang.LonggetCacheControl()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.LonggetMaxAge()The maximum age of events allowed in the stream.java.lang.LonggetMaxCount()The maximum number of events allowed in the stream.java.lang.LonggetTruncateBefore()The event number from which previous events can be scavenged.inthashCode()voidsetAcl(Acl acl)The Access Control List of the stream (ACL).voidsetCacheControl(java.lang.Long cacheControl)The amount of time for which the stream head is cacheable (in seconds).voidsetCustomProperties(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.voidsetMaxAge(java.lang.Long maxAge)The maximum age of events allowed in the stream.voidsetMaxCount(java.lang.Long maxCount)The maximum number of events allowed in the stream.voidsetTruncateBefore(java.lang.Long truncateBefore)The event number from which previous events can be scavenged.java.lang.StringtoString()
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-