Edit

Share via


GrainDirectoryOptions Class

Definition

public class GrainDirectoryOptions
type GrainDirectoryOptions = class
Public Class GrainDirectoryOptions
Inheritance
GrainDirectoryOptions

Constructors

GrainDirectoryOptions()

Fields

DEFAULT_CACHE_SIZE

The default value for CacheSize.

DEFAULT_CACHING_STRATEGY

The default value for CachingStrategy.

DEFAULT_INITIAL_CACHE_TTL

The default value for InitialCacheTTL.

DEFAULT_MAXIMUM_CACHE_TTL

The default value for MaximumCacheTTL.

DEFAULT_TTL_EXTENSION_FACTOR

The default value for CacheTTLExtensionFactor.

DEFAULT_UNREGISTER_RACE_DELAY

The default value for LazyDeregistrationDelay.

Properties

CacheSize

Gets or sets the maximum number of grains to cache directory information for.

CacheTTLExtensionFactor

Gets or sets the factor by which cache entry TTLs should be extended when they are found to be stable.

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 Adaptive strategy is used by default.

InitialCacheTTL

Gets or sets the initial (minimum) time, in seconds, to keep a cache entry before revalidating.

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

Gets or sets the maximum time, in seconds, to keep a cache entry before revalidating.

Applies to