Infinispan HotRod C++ Client  9.1.0.Final
Classes | Public Types | Public Member Functions | List of all members
infinispan::hotrod::TransactionContext Class Reference

#include <Transactions.h>

Classes

struct  ContextEntry
 

Public Types

enum  Action { SET, DELETED }
 
enum  ControlBit { NONE = 0x00, NOT_READ = 0x01, NON_EXISTING = 0x02, REMOVE_OP = 0x04 }
 

Public Member Functions

TransactionRemoteStatus getStatus () const
 
void setPrepared (TransactionRemoteStatus status)
 
bool hasValue (const std::vector< char > &key)
 
bool isDeleted (const std::vector< char > &key)
 
const void * getValue (const std::vector< char > &key)
 
ContextEntrygetEntry (std::vector< char > &key)
 
void addValue (std::vector< char > &key, const void *value, MetadataValue &meta, std::function< void(const void *)> deleter, std::function< void(const void *, std::vector< char > &)> valueMarshaller, ControlBit cb=NONE)
 
void setValue (std::vector< char > &key, const void *value, MetadataValue &meta, std::function< void(const void *)> deleter, std::function< void(const void *, std::vector< char > &)> valueMarshaller)
 
void setValueAsDeleted (std::vector< char > &key)
 
void removeEntry (const std::vector< char > &key)
 
void clear ()
 
void getBulk (int size, std::map< std::vector< char >, const void *> &mbuf)
 
int size ()
 

Detailed Description

A transaction context for the RemoteCacheBase class

Member Enumeration Documentation

◆ Action

Enumerator
SET 
DELETED 

◆ ControlBit

Enumerator
NONE 
NOT_READ 
NON_EXISTING 
REMOVE_OP 

Member Function Documentation

◆ addValue()

void infinispan::hotrod::TransactionContext::addValue ( std::vector< char > &  key,
const void *  value,
MetadataValue meta,
std::function< void(const void *)>  deleter,
std::function< void(const void *, std::vector< char > &)>  valueMarshaller,
ControlBit  cb = NONE 
)

◆ clear()

void infinispan::hotrod::TransactionContext::clear ( )

◆ getBulk()

void infinispan::hotrod::TransactionContext::getBulk ( int  size,
std::map< std::vector< char >, const void *> &  mbuf 
)

◆ getEntry()

ContextEntry& infinispan::hotrod::TransactionContext::getEntry ( std::vector< char > &  key)

◆ getStatus()

TransactionRemoteStatus infinispan::hotrod::TransactionContext::getStatus ( ) const
inline

◆ getValue()

const void* infinispan::hotrod::TransactionContext::getValue ( const std::vector< char > &  key)

◆ hasValue()

bool infinispan::hotrod::TransactionContext::hasValue ( const std::vector< char > &  key)

◆ isDeleted()

bool infinispan::hotrod::TransactionContext::isDeleted ( const std::vector< char > &  key)

◆ removeEntry()

void infinispan::hotrod::TransactionContext::removeEntry ( const std::vector< char > &  key)

◆ setPrepared()

void infinispan::hotrod::TransactionContext::setPrepared ( TransactionRemoteStatus  status)
inline

◆ setValue()

void infinispan::hotrod::TransactionContext::setValue ( std::vector< char > &  key,
const void *  value,
MetadataValue meta,
std::function< void(const void *)>  deleter,
std::function< void(const void *, std::vector< char > &)>  valueMarshaller 
)

◆ setValueAsDeleted()

void infinispan::hotrod::TransactionContext::setValueAsDeleted ( std::vector< char > &  key)

◆ size()

int infinispan::hotrod::TransactionContext::size ( )

The documentation for this class was generated from the following file: