Package com.alachisoft.ncache.client
Class CacheStreamAttributes
- java.lang.Object
-
- com.alachisoft.ncache.client.CacheStreamAttributes
-
public class CacheStreamAttributes extends java.lang.ObjectCacheStreamAttributes Class contains information about theCacheStreamattributes.
-
-
Constructor Summary
Constructors Constructor Description CacheStreamAttributes(StreamMode streamMode)Creates new instance of CacheStreamAttributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CacheDependencygetCacheDependency()Gets the cache dependency, which can be files, directories, or keys to other objects in application's cache.CacheItemPrioritygetCacheItemPriority()Gets the relative cache item priority of the cache stream.ExpirationgetExpiration()Gets the expiration mechanism for cache stream.java.lang.StringgetGroup()Gets the group associated with cache stream.StreamModegetStreamMode()Gets the stream mode associated with the cache stream.voidsetCacheDependency(CacheDependency value)Sets the cache dependency instance, which can be files, directories, or keys to other objects in application's cache.voidsetCacheItemPriority(CacheItemPriority value)Sets the relative cache item priority of the cache stream.voidsetExpiration(Expiration value)Sets the expiration mechanism for cache stream.voidsetGroup(java.lang.String value)Sets the group associated with cache stream.voidsetStreamMode(StreamMode value)Sets the stream mode associated with the cache stream.
-
-
-
Constructor Detail
-
CacheStreamAttributes
public CacheStreamAttributes(StreamMode streamMode)
Creates new instance of CacheStreamAttributes.- Parameters:
streamMode- SpecifiesStreamModeof the cache stream.
-
-
Method Detail
-
getCacheItemPriority
public final CacheItemPriority getCacheItemPriority()
Gets the relative cache item priority of the cache stream.- Returns:
- The relative cache item priority.
-
setCacheItemPriority
public final void setCacheItemPriority(CacheItemPriority value)
Sets the relative cache item priority of the cache stream.- Parameters:
value- The relative cache item priority.
-
getGroup
public final java.lang.String getGroup()
Gets the group associated with cache stream.- Returns:
- The group associated with the cache stream.
-
setGroup
public final void setGroup(java.lang.String value)
Sets the group associated with cache stream.- Parameters:
value- The group to be associated with the cache stream.
-
getCacheDependency
public final CacheDependency getCacheDependency()
Gets the cache dependency, which can be files, directories, or keys to other objects in application's cache.- Returns:
- The cache dependency instance associated with cache stream.
-
setCacheDependency
public final void setCacheDependency(CacheDependency value)
Sets the cache dependency instance, which can be files, directories, or keys to other objects in application's cache.- Parameters:
value- The cache dependency instance to be associated with cache stream.
-
getExpiration
public final Expiration getExpiration()
Gets the expiration mechanism for cache stream. After the specified timespan, the item expires from cache.- Returns:
Expirationinstance that contains information about cache stream expiration mechanism.
-
setExpiration
public final void setExpiration(Expiration value)
Sets the expiration mechanism for cache stream. After the specified timespan, the item expires from cache.- Parameters:
value- Expiration object that specifies the expiration mechanism for cache stream.
-
getStreamMode
public final StreamMode getStreamMode()
Gets the stream mode associated with the cache stream.- Returns:
- The stream mode associated with the cache stream.
-
setStreamMode
public final void setStreamMode(StreamMode value)
Sets the stream mode associated with the cache stream.- Parameters:
value- The stream mode to be associated with the cache stream.
-
-