#include <gridclientmessagecacherequestcommand.hpp>
List of all members.
Public Types |
| enum | GridCacheOperation {
PUT = 0x01,
PUT_ALL = 0x02,
GET = 0x03,
GET_ALL = 0x04,
RMV = 0x05,
RMV_ALL = 0x06,
ADD = 0x07,
REPLACE = 0x08,
CAS = 0x09,
METRICS = 0x0A
} |
typedef std::map
< GridClientVariant,
GridClientVariant > | TKeyValueMap |
Public Member Functions |
| | GridCacheRequestCommand (GridCacheOperation op) |
| GridCacheOperation | getOperation () const |
| std::string | getCacheName () const |
| void | setCacheName (const std::string &cacheName) |
| GridClientVariant | getKey () const |
| void | setKey (const GridClientVariant &key) |
| GridClientVariant | getValue () const |
| void | setValue (const GridClientVariant &val) |
| GridClientVariant | getValue2 () const |
| void | setValue2 (const GridClientVariant &val2) |
| TKeyValueMap | getValues () const |
| void | setValues (const TKeyValueMap &vals) |
| void | setFlags (const std::set< GridClientCacheFlag > &flags) |
| std::set< GridClientCacheFlag > | getFlags () const |
Static Public Member Functions |
| static GridCacheOperation | findByOperationCode (const int &val) |
Detailed Description
Cache request command.
Member Typedef Documentation
Typedef for cache request.
Member Enumeration Documentation
Available cache operations
- Enumerator:
| PUT |
Cache put.
|
| PUT_ALL |
Cache put all.
|
| GET |
Cache get.
|
| GET_ALL |
Cache get all.
|
| RMV |
Cache remove.
|
| RMV_ALL |
Cache remove all.
|
| ADD |
Cache add (put only if not exists).
|
| REPLACE |
Cache replace (put only if exists).
|
| CAS |
Cache compare and set.
|
| METRICS |
Cache metrics request.
|
Constructor & Destructor Documentation
Creates grid cache request.
- Parameters:
-
Member Function Documentation
| static GridCacheOperation GridCacheRequestCommand::findByOperationCode |
( |
const int & |
val |
) |
[inline, static] |
Tries to find enum value by operation code.
- Parameters:
-
| val | Operation code value. |
- Returns:
- Enum value.
| std::string GridCacheRequestCommand::getCacheName |
( |
|
) |
const [inline] |
Gets cache name.
- Returns:
- Cache name, or null if not set.
| std::set<GridClientCacheFlag> GridCacheRequestCommand::getFlags |
( |
|
) |
const [inline] |
- Returns:
- Cache flags for this command.
- Returns:
- Requested operation.
| TKeyValueMap GridCacheRequestCommand::getValues |
( |
|
) |
const [inline] |
- Returns:
- Values map for batch operations.
| void GridCacheRequestCommand::setCacheName |
( |
const std::string & |
cacheName |
) |
[inline] |
Sets cache name.
- Parameters:
-
| void GridCacheRequestCommand::setFlags |
( |
const std::set< GridClientCacheFlag > & |
flags |
) |
[inline] |
- Parameters:
-
| flags | Cache flags for this command. |
| void GridCacheRequestCommand::setValues |
( |
const TKeyValueMap & |
vals |
) |
[inline] |
- Parameters:
-
| vals | Values map for batch operations. |
The documentation for this class was generated from the following file: