Skip to main content

@fluidframework/container-runtime Package

Interfaces

InterfaceAlertsDescription
ContainerRuntimeOptionsLegacyFull set of options for container runtime as "required".
IAckedSummaryLegacyA single summary which has already been acked by the server.
IAckSummaryResultLegacy
IBaseSummarizeResultLegacyBase results for all submitSummary attempts.
IBroadcastSummaryResultLegacy
IClientSummaryWatcherLegacyWatches summaries created by a specific client.
ICompressionRuntimeOptionsLegacyOptions for op compression.
IEnqueueSummarizeOptionsLegacyOptions to use when enqueueing a summarize attempt.
IFluidDataStoreAttributes0Deprecated, Legacy
IFluidDataStoreAttributes1Deprecated, Legacy
IFluidDataStoreAttributes2Deprecated, Legacy
IGCRuntimeOptionsLegacy
IGeneratedSummaryStatsLegacyIn addition to the normal summary tree + stats, this contains additional stats only relevant at the root of the tree.
IGenerateSummaryTreeResultLegacyResults of submitSummary after generating the summary tree.
INackSummaryResultLegacy
IOnDemandSummarizeOptionsLegacy
IRetriableFailureErrorLegacyType for summarization failures that are retriable.
ISubmitSummaryOpResultLegacyResults of submitSummary after submitting the summarize op.
ISummarizeOptionsLegacyOptions affecting summarize behavior.
ISummarizerLegacy
ISummarizeResultsLegacy
ISummaryLegacyA single summary which can be tracked as it goes through its life cycle. The life cycle is: Local to Broadcast to Acked/Nacked.
ISummaryAckMessageLegacyInterface for summary ack messages with typed contents.
ISummaryBaseConfigurationLegacy
ISummaryCollectionOpEventsLegacy
ISummaryConfigurationDisableHeuristicsLegacy
ISummaryConfigurationDisableSummarizerLegacy
ISummaryConfigurationHeuristicsLegacy
ISummaryConfigurationWithSummaryOnRequestLegacyConfiguration used internally to indicate on-demand summaries only (no election/heuristics).
ISummaryNackMessageLegacyInterface for summary nack messages with typed contents.
ISummaryOpMessageLegacyInterface for summary op messages with typed contents.
ISummaryRuntimeOptionsLegacy
IUploadSummaryResultLegacyResults of submitSummary after uploading the tree to storage.
LoadContainerRuntimeParamsLegacyThis object holds the parameters necessary for the loadContainerRuntime(params) function.
SubmitSummaryFailureDataLegacyThe data in summarizer result when submit summary stage fails.

Classes

ClassAlertsDescription
SummaryCollectionLegacyData structure that looks at the op stream to track summaries as they are broadcast, acked and nacked. It provides functionality for watching specific summaries.

Enumerations

EnumAlertsDescription
CompressionAlgorithmsLegacyAvailable compression algorithms for op compression.
ContainerMessageTypeLegacy

Types

TypeAliasAlertsDescription
EnqueueSummarizeResultLegacy
IContainerRuntimeOptionsLegacyOptions for container runtime.
IdCompressorModeLegacyID Compressor mode. "on" - compressor is On. It's loaded as part of container load. This mode is sticky - once on, compressor is On for all sessions for a given document. This results in IContainerRuntime.idCompressor to be always available. "delayed" - ID compressor bundle is loaded only on establishing of first delta connection, i.e. it does not impact boot of cotnainer. In such mode IContainerRuntime.idCompressor is not made available (unless previous sessions of same document had it "On"). The only thing that is available is IContainerRuntime.generateDocumentUniqueId() that provides opportunistically short IDs. undefined - ID compressor is not loaded. While IContainerRuntime.generateDocumentUniqueId() is available, it will produce long IDs that are do not compress well.
ISummaryConfigurationLegacy
OmitAttributesVersionsDeprecated, Legacy
OpActionEventListenerLegacy
OpActionEventNameLegacy
ReadFluidDataStoreAttributesDeprecated, LegacyAdded IFluidDataStoreAttributes similar to IChannelAttributes which will tell the attributes of a store like the package, snapshotFormatVersion to take different decisions based on a particular snapshotFormatVersion.
SubmitSummaryResultLegacy

Strict type representing result of a submitSummary attempt. The result consists of 4 possible stages, each with its own data. The data is cumulative, so each stage will contain the data from the previous stages. If the final "submitted" stage is not reached, the result may contain the error object.

Stages:

  1. "base" - stopped before the summary tree was even generated, and the result only contains the base data
  1. "generate" - the summary tree was generated, and the result will contain that tree + stats
  1. "upload" - the summary was uploaded to storage, and the result contains the server-provided handle
  1. "submit" - the summarize op was submitted, and the result contains the op client sequence number.
SummarizeResultPartLegacy
SummaryStageLegacyThe stages of Summarize, used to describe how far progress succeeded in case of a failure at a later stage.

Functions

FunctionAlertsReturn TypeDescription
loadContainerRuntime(params)LegacyPromise<IContainerRuntime & IRuntime>This is meant to be used by a @fluidframework/container-definitions#IRuntimeFactory to instantiate a container runtime.

Variables

VariableAlertsModifiersTypeDescription
AllowTombstoneRequestHeaderKeyLegacyreadonlyTrue if a tombstoned object should be returned without erroring
DefaultSummaryConfigurationLegacyreadonlyISummaryConfiguration
disabledCompressionConfigLegacyreadonlyICompressionRuntimeOptions
InactiveResponseHeaderKeyDeprecated, LegacyreadonlyInactive error responses will have this header set to true
TombstoneResponseHeaderKeyLegacyreadonlyTombstone error responses will have this header set to true

Function Details

loadContainerRuntime

This is meant to be used by a @fluidframework/container-definitions#IRuntimeFactory to instantiate a container runtime.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/container-runtime/legacy.

For more information about our API support guarantees, see here.

Signature

export declare function loadContainerRuntime(params: LoadContainerRuntimeParams): Promise<IContainerRuntime & IRuntime>;

Parameters

ParameterTypeDescription
paramsLoadContainerRuntimeParamsAn object which specifies all required and optional params necessary to instantiate a runtime.

Returns

A runtime which provides all the functionality necessary to bind with the loader layer via the IRuntime interface and provide a runtime environment via the IContainerRuntime interface.

Return type: Promise<IContainerRuntime & IRuntime>

Variable Details

AllowTombstoneRequestHeaderKey

True if a tombstoned object should be returned without erroring

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/container-runtime/legacy.

For more information about our API support guarantees, see here.

Signature

AllowTombstoneRequestHeaderKey = "allowTombstone"

DefaultSummaryConfiguration

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/container-runtime/legacy.

For more information about our API support guarantees, see here.

Signature

DefaultSummaryConfiguration: ISummaryConfiguration

Type: ISummaryConfiguration

disabledCompressionConfig

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/container-runtime/legacy.

For more information about our API support guarantees, see here.

Signature

disabledCompressionConfig: ICompressionRuntimeOptions

Type: ICompressionRuntimeOptions

InactiveResponseHeaderKey

Inactive error responses will have this header set to true

This API is deprecated and will be removed in a future release.

this header is deprecated and will be removed in the future. The functionality corresponding to this was experimental and is no longer supported.

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/container-runtime/legacy.

For more information about our API support guarantees, see here.

Signature

InactiveResponseHeaderKey = "isInactive"

TombstoneResponseHeaderKey

Tombstone error responses will have this header set to true

This API is provided for existing users, but is not recommended for new users.

To use, import via @fluidframework/container-runtime/legacy.

For more information about our API support guarantees, see here.

Signature

TombstoneResponseHeaderKey = "isTombstoned"