Show / Hide Table of Contents

Class AbstractKeyBundler

An abstract key-based bundler serves as a base for NamedCache get() and remove() operation bundling.

Inheritance
object
AbstractBundler
AbstractKeyBundler
Inherited Members
AbstractBundler.SizeThreshold
AbstractBundler.ThreadThreshold
AbstractBundler.DelayMillis
AbstractBundler.AllowAutoAdjust
AbstractBundler.SyncRoot
AbstractBundler.Adjust()
AbstractBundler.ResetStatistics()
AbstractBundler.UpdateStatistics()
AbstractBundler.ToString()
AbstractBundler.getOpenBundle()
AbstractBundler.ADJUSTMENT_FREQUENCY
AbstractBundler.m_previousSizeThreshold
AbstractBundler.m_listBundle
AbstractBundler.m_countThreads
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
Namespace: Tangosol.Net.Cache
Assembly: Coherence.dll
Syntax
public abstract class AbstractKeyBundler : AbstractBundler

Methods

Bundling(ICollection)

The bundle operation to be performed against a collected set of keys by the concrete AbstractKeyBundler implementations. If an exception occurs during bundle operation, it could be repeated using singleton sets.

Declaration
public abstract IDictionary Bundling(ICollection colKeys)
Parameters
Type Name Description
ICollection colKeys

A key collection to perform the bundled operation for.

Returns
Type Description
IDictionary

The Map of operation results.

InstantiateBundle()

Instantiate a new Bundle object.

Declaration
protected override AbstractBundler.Bundle InstantiateBundle()
Returns
Type Description
AbstractBundler.Bundle

A new Bundle object.

Overrides
AbstractBundler.InstantiateBundle()

Process(object)

Process the specified key in a most optimal way according to the bundle settings.

Declaration
public object Process(object key)
Parameters
Type Name Description
object key

The key to process.

Returns
Type Description
object

An execution result according to the caller's contract.

ProcessAll(ICollection)

Process a colKeys of specified items in a most optimal way according to the bundle settings.

Declaration
public IDictionary ProcessAll(ICollection colKeys)
Parameters
Type Name Description
ICollection colKeys

The collection of keys to process.

Returns
Type Description
IDictionary

An execution result according to the caller's contract.

Unbundling(object)

Un-bundle bundled operation. This operation would be used if an exception occurs during a bundled operation or if the number of active threads is below the ThreadThreshold value.

Declaration
public abstract object Unbundling(object key)
Parameters
Type Name Description
object key

A key to perform the un-bundled operation for.

Returns
Type Description
object

The operation result for the specified key, may be null.

In this article
Back to top Copyright © 2000, 2024, Oracle and/or its affiliates.