Class AbstractKeyBundler
An abstract key-based bundler serves as a base for NamedCache get() and remove() operation bundling.
Inherited Members
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
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. |