Class AbstractKeyBundler.Bundle
Bundle represents a unit of optimized execution.
Inherited Members
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
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 |