Skip to content

GrainTimerCreationOptions

struct

Namespace: Orleans.Runtime

Options for creating grain timers.
public readonly struct GrainTimerCreationOptions

Constructors

Properties

  • DueTime A System.TimeSpan representing the amount of time to delay before invoking the callback method specified when the IGrainTimer was constructed. Specify System.Threading.Timeout.InfiniteTimeSpan to prevent the timer from starting. Specify System.TimeSpan.Zero to start the timer immediately.
  • Interleave Gets a value indicating whether callbacks scheduled by this timer are allowed to interleave execution with other timers and grain calls. Defaults to false.
  • KeepAlive Gets a value indicating whether callbacks scheduled by this timer should extend the lifetime of the grain activation. Defaults to false.
  • Period The time interval between invocations of the callback method specified when the IGrainTimer was constructed. Specify System.Threading.Timeout.InfiniteTimeSpan to disable periodic signaling.