gemfire::SharedBase Class Reference

Inherited by gemfire::AttributesFactory, gemfire::AttributesMutator, gemfire::AuthInitialize, gemfire::CacheAttributes, gemfire::CacheFactory, gemfire::CacheListener, gemfire::CacheLoader, gemfire::CacheStatistics, gemfire::CacheTransactionManager, gemfire::CacheWriter, gemfire::CqAttributes [virtual], gemfire::CqAttributesFactory, gemfire::CqAttributesMutator [virtual], gemfire::CqListener, gemfire::CqQuery, gemfire::CqServiceStatistics, gemfire::CqStatistics, gemfire::DistributedSystem, gemfire::EntryEvent, gemfire::Exception, gemfire::Execution, gemfire::FunctionService, gemfire::HashMapOfCacheable, gemfire::HashMapOfException, gemfire::HashSetOfCacheableKey, gemfire::NullSharedBase, gemfire::PartitionResolver, gemfire::PersistenceManager, gemfire::Pool, gemfire::PoolFactory, gemfire::Query, gemfire::QueryService, gemfire::Region, gemfire::RegionEntry, gemfire::RegionFactory, gemfire::RegionService, gemfire::ResultCollector, gemfire::SelectResults, gemfire::SelectResultsIterator, gemfire::Serializable, gemfire::TransactionId, gemfire::VectorOfCacheable, and gemfire::VectorOfCacheableKey.


Detailed Description

This abstract base class is the base class of all user objects that have the shared capability of reference counting.

Public Member Functions

void preserveSB () const
 Atomically increment reference count.
int32_t refCount ()
 
Returns:
the reference count

void releaseSB () const
 Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.
 SharedBase ()
 Constructor.

Constructor & Destructor Documentation

gemfire::SharedBase::SharedBase (  )  [inline]

Constructor.


Member Function Documentation

void gemfire::SharedBase::preserveSB (  )  const

Atomically increment reference count.

int32_t gemfire::SharedBase::refCount (  )  [inline]

Returns:
the reference count

void gemfire::SharedBase::releaseSB (  )  const

Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.


GemFire C++ Cache API Documentation