Show / Hide Table of Contents

Class AbstractKeyBundler.Bundle

Bundle represents a unit of optimized execution.

Inheritance
object
AbstractBundler.Bundle
AbstractKeyBundler.Bundle
Inherited Members
AbstractBundler.Bundle.Bundler
AbstractBundler.Bundle.SyncRoot
AbstractBundler.Bundle.BundleSize
AbstractBundler.Bundle.IsMaster
AbstractBundler.Bundle.TotalBundles
AbstractBundler.Bundle.TotalSize
AbstractBundler.Bundle.TotalBurstDuration
AbstractBundler.Bundle.TotalWaitDuration
AbstractBundler.Bundle.Lock
AbstractBundler.Bundle.IsOpen()
AbstractBundler.Bundle.IsPending()
AbstractBundler.Bundle.IsProcessed()
AbstractBundler.Bundle.IsException()
AbstractBundler.Bundle.SetStatus(int)
AbstractBundler.Bundle.WaitForResults(bool)
AbstractBundler.Bundle.EnsureResults(bool)
AbstractBundler.Bundle.ResetStatistics()
AbstractBundler.Bundle.ToString()
AbstractBundler.Bundle.FormatStatusName(int)
AbstractBundler.Bundle.STATUS_OPEN
AbstractBundler.Bundle.STATUS_PENDING
AbstractBundler.Bundle.STATUS_PROCESSED
AbstractBundler.Bundle.STATUS_EXCEPTION
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
protected class AbstractKeyBundler.Bundle : AbstractBundler.Bundle

Constructors

Bundle()

Default constructor.

Declaration
public Bundle()

Bundle(AbstractBundler)

Constructor.

Declaration
public Bundle(AbstractBundler bundler)
Parameters
Type Name Description
AbstractBundler bundler

The bundler the operations are performed on.

Methods

Add(object)

Add the specified key to the Bundle.

Declaration
public bool Add(object key)
Parameters
Type Name Description
object key

The key to add to this Bundle.

Returns
Type Description
bool

True if this Bundle was empty prior to this call.

AddAll(ICollection)

Add the specified collection of keys to the Bundle.

Declaration
public bool AddAll(ICollection colKeys)
Parameters
Type Name Description
ICollection colKeys

The collection of keys to add to this Bundle.

Returns
Type Description
bool

True if this Bundle was empty prior to this call.

EnsureResults()

Obtain results of the bundled requests.

Declaration
public override void EnsureResults()
Overrides
AbstractBundler.Bundle.EnsureResults()

GetBundleSize()

Bundle size. The return value should be expressed in the same units as the value returned by the SizeThreshold property.

Declaration
protected int GetBundleSize()
Returns
Type Description
int

Bundle size.

Process(bool, object)

Process the specified key according to this Bundle state.

Declaration
public object Process(bool isBurst, object key)
Parameters
Type Name Description
bool isBurst

True if this thread is supposed to perform an actual bundled operation (burst); false otherwise.

object key

The key to process.

Returns
Type Description
object

An execution result according to the caller's contract.

ProcessAll(bool, ICollection)

Process the specified key collection according to this Bundle state.

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

True if this thread is supposed to perform an actual bundled operation (burst); false otherwise.

ICollection colKeys

The collection of keys to process.

Returns
Type Description
IDictionary

An execution result according to the caller's contract.

ReleaseThread()

Release all bundle resources associated with the current thread.

Declaration
public bool ReleaseThread()
Returns
Type Description
bool

True iff all entered threads have released

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