Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

GrainTimerCreationOptions.KeepAlive Property

Definition

Namespace:
Orleans.Runtime
Assembly:
Orleans.Core.Abstractions.dll
Package:
Microsoft.Orleans.Core.Abstractions v10.0.0
Package:
Microsoft.Orleans.Core.Abstractions v8.2.0
Package:
Microsoft.Orleans.Core.Abstractions v9.0.0
Package:
Microsoft.Orleans.Core.Abstractions v9.1.2

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets a value indicating whether callbacks scheduled by this timer should extend the lifetime of the grain activation. Defaults to false.

public bool KeepAlive { get; init; }
member this.KeepAlive : bool with get, set
Public Property KeepAlive As Boolean

Property Value

Remarks

If this value is false, timer callbacks will not extend a grain activation's lifetime. If a grain is only processing this timer's callbacks and no other messages, the grain will be collected after its idle collection period expires. If this value is true, timer callback will extend a grain activation's lifetime. If the timer period is shorter than the grain's idle collection period, the grain will not be collected due to idleness.

Applies to