Skip to content

GrainDirectoryOptions Properties

Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.

CacheSize

getset
View source
public int CacheSize
Gets or sets the maximum number of grains to cache directory information for.

CacheTTLExtensionFactor

getset
View source
[System.Obsolete(CacheTTLExtensionFactor is deprecated and will be removed in a future version.)]
public double CacheTTLExtensionFactor
Gets or sets the factor by which cache entry TTLs should be extended when they are found to be stable.

CachingStrategy

getset
View source
public CachingStrategyType CachingStrategy
Gets or sets the caching strategy to use. The options are None, which means don't cache directory entries locally; LRU, which indicates that a standard fixed-size least recently used strategy should be used; and Adaptive, which indicates that an adaptive strategy with a fixed maximum size should be used. The LRU strategy is used by default.

InitialCacheTTL

getset
View source
[System.Obsolete(InitialCacheTTL is deprecated and will be removed in a future version.)]
public TimeSpan InitialCacheTTL
Gets or sets the initial (minimum) time, in seconds, to keep a cache entry before revalidating.

LazyDeregistrationDelay

getset
View source
public TimeSpan LazyDeregistrationDelay
Gets or sets the time span between when we have added an entry for an activation to the grain directory and when we are allowed to conditionally remove that entry. Conditional deregistration is used for lazy clean-up of activations whose prompt deregistration failed for some reason (e.g., message failure). This should always be at least one minute, since we compare the times on the directory partition, so message delays and clcks skues have to be allowed.

MaximumCacheTTL

getset
View source
public TimeSpan MaximumCacheTTL
Gets or sets the maximum time, in seconds, to keep a cache entry before revalidating.