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.IntegergetCacheControl()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.IntegergetMaxAge()The maximum age of events allowed in the stream.java.lang.IntegergetMaxCount()The maximum number of events allowed in the stream.java.lang.IntegergetTruncateBefore()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.Integer cacheControl)The amount of time for which the stream head is cacheable (in seconds).voidsetCustomProperties(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.voidsetMaxAge(java.lang.Integer maxAge)The maximum age of events allowed in the stream.voidsetMaxCount(java.lang.Integer maxCount)The maximum number of events allowed in the stream.voidsetTruncateBefore(java.lang.Integer truncateBefore)The event number from which previous events can be scavenged.
-
-
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-