Apache Ignite C++
core/include/ignite/cache/cache_peek_mode.h
Go to the documentation of this file.
1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one or more
3  * contributor license agreements. See the NOTICE file distributed with
4  * this work for additional information regarding copyright ownership.
5  * The ASF licenses this file to You under the Apache License, Version 2.0
6  * (the "License"); you may not use this file except in compliance with
7  * the License. You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
23 #ifndef _IGNITE_CACHE_CACHE_PEEK_MODE
24 #define _IGNITE_CACHE_CACHE_PEEK_MODE
25 
26 namespace ignite
27 {
28  namespace cache
29  {
34  {
35  enum Type
36  {
40  ALL = 0x01,
41 
46  NEAR_CACHE = 0x02,
47 
52  PRIMARY = 0x04,
53 
58  BACKUP = 0x08,
59 
63  ONHEAP = 0x10,
64 
68  OFFHEAP = 0x20,
69 
73  SWAP = 0x40
74  };
75  };
76  }
77 }
78 
79 #endif //_IGNITE_CACHE_CACHE_PEEK_MODE
ignite
Apache Ignite API.
Definition: cache.h:48
ignite::cache::CachePeekMode::NEAR_CACHE
@ NEAR_CACHE
Peek into near cache only (don't peek into partitioned cache).
Definition: core/include/ignite/cache/cache_peek_mode.h:46
ignite::cache::CachePeekMode::ONHEAP
@ ONHEAP
Peeks value from the on-heap storage only.
Definition: core/include/ignite/cache/cache_peek_mode.h:63
ignite::cache::CachePeekMode::SWAP
@ SWAP
Peeks value from the swap storage only, without loading swapped value into cache.
Definition: core/include/ignite/cache/cache_peek_mode.h:73
ignite::cache::CachePeekMode::OFFHEAP
@ OFFHEAP
Peeks value from the off-heap storage only, without loading off-heap value into cache.
Definition: core/include/ignite/cache/cache_peek_mode.h:68
ignite::cache::CachePeekMode::BACKUP
@ BACKUP
Peek value from backup copies of partitioned cache only (skip near cache).
Definition: core/include/ignite/cache/cache_peek_mode.h:58
ignite::cache::CachePeekMode::Type
Type
Definition: core/include/ignite/cache/cache_peek_mode.h:35
ignite::cache::CachePeekMode::PRIMARY
@ PRIMARY
Peek value from primary copy of partitioned cache only (skip near cache).
Definition: core/include/ignite/cache/cache_peek_mode.h:52
ignite::cache::CachePeekMode
Enumeration of all supported cache peek modes.
Definition: core/include/ignite/cache/cache_peek_mode.h:33
ignite::cache::CachePeekMode::ALL
@ ALL
Peeks into all available cache storages.
Definition: core/include/ignite/cache/cache_peek_mode.h:40