The NamedMapTKey, TValue generic type exposes the following members.
Controls the stream reading behavior when the serialized key/value elements are retrieved from in-memory data grid as the memory stream chunks. When using either XML-based or Json-like custom serializers to serialize keys or values, it might be necessary for NamedMapTKey, TValue to control the memory stream position after reading an individual key or its value out of memory stream.
Controls whether object replication is enabled for the named map.
Enabling replication provides fault tolerance, i.e., it ensures that no data is lost in case of host failure at the expense of increased memory and network utilization. If replication is enabled (AvailabilityMode.UseReplicas), the number of replicas created is controlled by the max_replicas parameter in the ScaleOut StateServer configuration. By default, object replication is enabled.
Gets and sets the maximum number of key/value entries in the client cache. Client cache size is set to 10000 by default.
Gets and sets coherency interval, i.e., the maximum allowed time between the last server read request and a TryGetValue(TKey, TValue) request before the client will retrieve the object from the server instead of the client cache (if present). A coherency interval of 0 means that the values are never served out of the client cache. Coherency interval is set to 0 by default, so TryGetValue(TKey, TValue) always retrieves latest value from the server.
Gets or sets the InvocationGrid object, which is used by parallel method invocations (InvokeTParam, TResult(NamedMapInvokableTKey, TValue, TParam, TResult, TParam)) and parallel queries (ExecuteParallelQuery(QueryConditionTKey, TValue)).
Gets the CustomSerializerT used to serialize and deserialize keys. Custom serializers can be assigned to the NamedMapTKey, TValue via the NamedMapTKey, TValue(String, CustomSerializerTKey, CustomSerializerTValue) public constructor.
Returns the integer value used as the identifier of the named map.
Gets the map name.
Sets the maximum number of server request retries when a race condition between client requests occur.
Allows specify the transport protocol for parallel operations during the InvokeTParam, TResult(NamedMapInvokableTKey, TValue, TParam, TResult, TParam) or ExecuteParallelQuery(QueryConditionTKey, TValue) method calls. By default this property is set to ParallelOperationTransport.UseSockets.
Gets the CustomSerializerT used to serialize and deserialize values. Custom serializers can be assigned to the NamedMapTKey, TValue via the NamedMapTKey, TValue(String, CustomSerializerTKey, CustomSerializerTValue) public constructor.