Class AbstractEntryBundler.Bundle
Bundle represents a unit of optimized execution.
Inherited Members
Namespace: Tangosol.Net.Cache
Assembly: Coherence.dll
Syntax
protected class AbstractEntryBundler.Bundle : AbstractBundler.Bundle
Constructors
Bundle()
Default constructor.
Declaration
protected 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, object)
Add the specified entry to the Bundle.
Declaration
public bool Add(object key, object value)
Parameters
Type | Name | Description |
---|---|---|
object | key | The entry key. |
object | value | The entry value. |
Returns
Type | Description |
---|---|
bool | True if this Bundle was empty prior to this call. |
AddAll(IDictionary)
Add the specified collection of entries to the Bundle.
Declaration
public bool AddAll(IDictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
IDictionary | dictionary | The collection of entries. |
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, object)
Process the specified entry according to this Bundle state.
Declaration
public void Process(bool isBurst, object key, object value)
Parameters
Type | Name | Description |
---|---|---|
bool | isBurst | True if this thread is supposed to perform an actual bundled operation (burst); false otherwise |
object | key | The entry key. |
object | value | The entry value. |
ProcessAll(bool, IDictionary)
Process the specified collection of entries according to this Bundle state.
Declaration
public void ProcessAll(bool isBurst, IDictionary dictionary)
Parameters
Type | Name | Description |
---|---|---|
bool | isBurst | True if this thread is supposed to perform an actual bundled operation (burst); false otherwise |
IDictionary | dictionary | The collection of entries. |
ReleaseThread()
Release all bundle resources associated with the current thread.
Declaration
protected bool ReleaseThread()
Returns
Type | Description |
---|---|
bool | True iff all entered threads have released. |