Apache Ignite C++
thin-client/include/ignite/thin/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_IMPL_THIN_CACHE_CACHE_PEEK_MODE
24 #define _IGNITE_IMPL_THIN_CACHE_CACHE_PEEK_MODE
25 
26 namespace ignite
27 {
28  namespace thin
29  {
30  namespace cache
31  {
36  {
37  enum Type
38  {
42  ALL = 0x01,
43 
48  NEAR_CACHE = 0x02,
49 
54  PRIMARY = 0x04,
55 
60  BACKUP = 0x08,
61 
65  ONHEAP = 0x10,
66 
70  OFFHEAP = 0x20
71  };
72  };
73  }
74  }
75 }
76 
77 #endif //_IGNITE_IMPL_THIN_CACHE_CACHE_PEEK_MODE
ignite
Apache Ignite API.
Definition: cache.h:48
ignite::thin::cache::CachePeekMode::ONHEAP
@ ONHEAP
Peeks value from the on-heap storage only.
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:65
ignite::thin::cache::CachePeekMode
Enumeration of all supported cache peek modes.
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:35
ignite::thin::cache::CachePeekMode::OFFHEAP
@ OFFHEAP
Peeks value from the off-heap storage only, without loading off-heap value into cache.
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:70
ignite::thin::cache::CachePeekMode::Type
Type
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:37
ignite::thin::cache::CachePeekMode::ALL
@ ALL
Peeks into all available cache storages.
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:42
ignite::thin::cache::CachePeekMode::PRIMARY
@ PRIMARY
Peek value from primary copy of partitioned cache only (skip near cache).
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:54
ignite::thin::cache::CachePeekMode::NEAR_CACHE
@ NEAR_CACHE
Peek into near cache only (don't peek into partitioned cache).
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:48
ignite::thin::cache::CachePeekMode::BACKUP
@ BACKUP
Peek value from backup copies of partitioned cache only (skip near cache).
Definition: thin-client/include/ignite/thin/cache/cache_peek_mode.h:60