Table of Contents

Constructor ReadOptions

Namespace
Scaleout.Client
Assembly
Scaleout.Client.dll

ReadOptions(ClientCacheUsage, GeoServerReadMode)

Constructor.

public ReadOptions(ClientCacheUsage clientCacheUsage, GeoServerReadMode geoServerReadMode)

Parameters

clientCacheUsage ClientCacheUsage

Indicates whether a reference from the in-process client cache may be returned. Use a deep copy if the returned object will be modified but the changes will not be persisted, or when an optimistic update will be used to persist changes back to the ScaleOut service.

geoServerReadMode GeoServerReadMode

GeoServer "pull" replication behavior when retrieving the object from the ScaleOut service.

ReadOptions(ClientCacheUsage, GeoServerReadMode, VersionToken)

Constructor.

public ReadOptions(ClientCacheUsage clientCacheUsage, GeoServerReadMode geoServerReadMode, VersionToken fastReadVersion)

Parameters

clientCacheUsage ClientCacheUsage

Indicates whether a reference from the in-process client cache may be returned. Use a deep copy if the returned object will be modified but the changes will not be persisted, or when an optimistic update will be used to persist changes back to the ScaleOut service.

geoServerReadMode GeoServerReadMode

GeoServer "pull" replication behavior when retrieving the object from the ScaleOut service.

fastReadVersion VersionToken

For use in invoke callbacks. Indicates whether a "fast read" should be attempted, allowing an object to be returned directly from the in-process client cache without first doing a round trip to the authoritative ScaleOut service for a version check. Set to Empty (the default) to disable fast reads.

ReadOptions(ClientCacheUsage, GeoServerReadMode, VersionToken, TimeSpan)

Constructor.

public ReadOptions(ClientCacheUsage clientCacheUsage, GeoServerReadMode geoServerReadMode, VersionToken fastReadVersion, TimeSpan coherencyInterval)

Parameters

clientCacheUsage ClientCacheUsage

Indicates whether a reference from the in-process client cache may be returned. Use a deep copy if the returned object will be modified but the changes will not be persisted, or when an optimistic update will be used to persist changes back to the ScaleOut service.

geoServerReadMode GeoServerReadMode

GeoServer "pull" replication behavior when retrieving the object from the ScaleOut service.

fastReadVersion VersionToken

For use in invoke callbacks. Indicates whether a "fast read" should be attempted, allowing an object to be returned directly from the in-process client cache without first doing a round trip to the authoritative ScaleOut service for a version check. Set to Empty (the default) to disable fast reads.

coherencyInterval TimeSpan

The coherency interval to use for the read call when the clientCacheUsage parameter is set to OverrideCoherencyInterval or OverrideCoherencyIntervalDeepCopy.