Show / Hide Table of Contents

Class StatefulUnaryOperator<TParam, TResult>

Base class for stateful query operator implementations, providing support to load and save operator state during checkpointing and recovery.

Inheritance
System.Object
UnaryOperator<TParam, TResult>
VersionedUnaryOperator<TParam, TResult>
StatefulUnaryOperator<TParam, TResult>
Implements
IUnaryOperator
ISubscription
IStatefulOperator
IOperator
System.IDisposable
IVersioned
Inherited Members
VersionedUnaryOperator<TParam, TResult>.Name
VersionedUnaryOperator<TParam, TResult>.Version
UnaryOperator<TParam, TResult>.Subscribe()
UnaryOperator<TParam, TResult>.SetContext(IOperatorContext)
UnaryOperator<TParam, TResult>.Start()
UnaryOperator<TParam, TResult>.Dispose()
UnaryOperator<TParam, TResult>.Dispose(Boolean)
UnaryOperator<TParam, TResult>.Accept(ISubscriptionVisitor)
UnaryOperator<TParam, TResult>.OnSubscribe()
UnaryOperator<TParam, TResult>.OnStart()
UnaryOperator<TParam, TResult>.OnDispose()
UnaryOperator<TParam, TResult>.Inputs
UnaryOperator<TParam, TResult>.Input
UnaryOperator<TParam, TResult>.Params
UnaryOperator<TParam, TResult>.Output
UnaryOperator<TParam, TResult>.IsDisposed
Namespace: Reaqtive
Assembly: Reaqtive.Core.dll
Syntax
public abstract class StatefulUnaryOperator<TParam, TResult> : VersionedUnaryOperator<TParam, TResult>, IUnaryOperator, ISubscription, IStatefulOperator, IOperator, IDisposable, IVersioned
Type Parameters
Name Description
TParam

Type of the parameters passed to the observer.

TResult

Element type of the result sequence produced by the operator.

Constructors

StatefulUnaryOperator(TParam, IObserver<TResult>)

Creates a new stateful operator instance using the given parameters and the observer to report downstream notifications to.

Declaration
protected StatefulUnaryOperator(TParam parent, IObserver<TResult> observer)
Parameters
Type Name Description
TParam parent

Parameters used by the operator.

System.IObserver<TResult> observer

Observer receiving the operator's output.

Properties

StateChanged

Gets a flag indicating whether state has changed since the last time the operator state got saved.

Declaration
public virtual bool StateChanged { get; protected set; }
Property Value
Type Description
System.Boolean

Methods

LoadState(IOperatorStateReader, Version)

Loads the state of the operator.

Declaration
public void LoadState(IOperatorStateReader reader, Version version)
Parameters
Type Name Description
IOperatorStateReader reader

Reader to read operator state from.

System.Version version

Version of the state being loaded.

LoadStateCore(IOperatorStateReader)

Loads the state of the operator.

Declaration
protected virtual void LoadStateCore(IOperatorStateReader reader)
Parameters
Type Name Description
IOperatorStateReader reader

Reader to read operator state from.

LoadStateCore(IOperatorStateReader, Version)

Loads the state of the operator using the specified state version.

Declaration
protected virtual void LoadStateCore(IOperatorStateReader reader, Version version)
Parameters
Type Name Description
IOperatorStateReader reader

Reader to read operator state from.

System.Version version

Version of the state being read.

OnDispose()

Called when the subscription is disposed.

Declaration
protected override void OnDispose()
Overrides
Reaqtive.UnaryOperator<TParam, TResult>.OnDispose()

OnStateSaved()

Called when subscription state was successfully saved.

Declaration
public virtual void OnStateSaved()

SaveState(IOperatorStateWriter, Version)

Saves the state of the operator.

Declaration
public void SaveState(IOperatorStateWriter writer, Version version)
Parameters
Type Name Description
IOperatorStateWriter writer

Writer to write operator state to.

System.Version version

Version of the state being saved.

SaveStateCore(IOperatorStateWriter)

Saves the state of the operator.

Declaration
protected virtual void SaveStateCore(IOperatorStateWriter writer)
Parameters
Type Name Description
IOperatorStateWriter writer

Writer to write operator state to.

SaveStateCore(IOperatorStateWriter, Version)

Saves the state of the operator using the specified state version.

Declaration
protected virtual void SaveStateCore(IOperatorStateWriter writer, Version version)
Parameters
Type Name Description
IOperatorStateWriter writer

Writer to write operator state to.

System.Version version

Version of the state being written.

Implements

IUnaryOperator
ISubscription
IStatefulOperator
IOperator
System.IDisposable
IVersioned
In This Article
Back to top Generated by DocFX