Oracle Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.1.2)

E26041-01

AbstractKeyBundler Class Reference

#include <coherence/net/cache/AbstractKeyBundler.hpp>

Inherits AbstractBundler.

Inherited by BundlingNamedCache::GetBundler, and BundlingNamedCache::RemoveBundler.

List of all members.


Detailed Description

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

Author:
gg 2007.01.28

lh 2012.06.05

Since:
Coherence 12.1.2

Public Types

typedef spec::Handle Handle
 AbstractKeyBundler Handle definition.
typedef spec::View View
 AbstractKeyBundler View definition.
typedef spec::Holder Holder
 AbstractKeyBundler Holder definition.
typedef this_spec::Handle Handle
 AbstractBundler Handle definition.
typedef this_spec::View View
 AbstractBundler View definition.
typedef this_spec::Holder Holder
 AbstractBundler Holder definition.

Public Member Functions

Object::Holder process (Object::View vKey)
 Process the specified key in a most optimal way according to the bundle settings.
Map::View processAll (Collection::View vColKeys)
 Process a colKeys of specified items in a most optimal way according to the bundle settings.
virtual Map::View bundle (Collection::View vColKeys)=0
 The bundle operation to be performed against a collected set of keys by the concrete AbstractKeyBundler implementations.
virtual Object::Holder unbundle (Object::View vKey)=0
 Un-bundle bundled operation.
virtual Bundle::Handle instantiateBundle ()
 Instantiate a new Bundle object.

Returns:
a new Bundle object


Classes

class  Bundle
 Bundle represents a unit of optimized execution. More...

Member Function Documentation

Object::Holder process ( Object::View  vKey  ) 

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

Parameters:
vKey the key to process
Returns:
an execution result according to the caller's contract

Map::View processAll ( Collection::View  vColKeys  ) 

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

Parameters:
vColKeys the collection of keys to process
Returns:
an execution result according to the caller's contract

virtual Map::View bundle ( Collection::View  vColKeys  )  [pure virtual]

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.

Parameters:
vColKeys a key collection to perform the bundled operation for
Returns:
the Map of operation results

virtual Object::Holder unbundle ( Object::View  vKey  )  [pure virtual]

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.

Parameters:
ohKey a key to perform the un-bundled operation for
Returns:
the operation result for the specified key, may be NULL


The documentation for this class was generated from the following file:
Copyright © 2000, 2013, Oracle and/or its affiliates. All rights reserved.