Package com.eventstore.dbclient
Class StreamMetadata
java.lang.Object
com.eventstore.dbclient.StreamMetadata
Represents stream metadata with strongly typed properties for system values and a dictionary-like interface for
custom values.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetAcl()The Access Control List of the stream (ACL).The amount of time for which the stream head is cacheable (in seconds).An enumerable of key-value pairs of keys to JSON text for user-provider metadata.The maximum age of events allowed in the stream.The maximum number of events allowed in the stream.The event number from which previous events can be scavenged.inthashCode()voidThe Access Control List of the stream (ACL).voidsetCacheControl(Long cacheControl) The amount of time for which the stream head is cacheable (in seconds).voidsetCustomProperties(Map<String, Object> customProperties) An enumerable of key-value pairs of keys to JSON text for user-provider metadata.voidThe maximum age of events allowed in the stream.voidsetMaxCount(Long maxCount) The maximum number of events allowed in the stream.voidsetTruncateBefore(Long truncateBefore) The event number from which previous events can be scavenged.toString()
-
Constructor Details
-
StreamMetadata
public StreamMetadata()
-
-
Method Details
-
getMaxAge
The maximum age of events allowed in the stream. -
setMaxAge
The maximum age of events allowed in the stream. -
getTruncateBefore
The event number from which previous events can be scavenged. This is used to implement deletion of streams. -
setTruncateBefore
The event number from which previous events can be scavenged. This is used to implement deletion of streams. -
getCacheControl
The amount of time for which the stream head is cacheable (in seconds). -
setCacheControl
The amount of time for which the stream head is cacheable (in seconds). -
getAcl
The Access Control List of the stream (ACL). -
setAcl
The Access Control List of the stream (ACL). -
getMaxCount
The maximum number of events allowed in the stream. -
setMaxCount
The maximum number of events allowed in the stream. -
getCustomProperties
An enumerable of key-value pairs of keys to JSON text for user-provider metadata. -
setCustomProperties
An enumerable of key-value pairs of keys to JSON text for user-provider metadata. -
equals
-
hashCode
public int hashCode() -
toString
-