VMware GemFire Native C++ Reference
9.2.4
CqState.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#ifndef GEODE_CQSTATE_H_
4
#define GEODE_CQSTATE_H_
5
6
/*
7
* Licensed to the Apache Software Foundation (ASF) under one or more
8
* contributor license agreements. See the NOTICE file distributed with
9
* this work for additional information regarding copyright ownership.
10
* The ASF licenses this file to You under the Apache License, Version 2.0
11
* (the "License"); you may not use this file except in compliance with
12
* the License. You may obtain a copy of the License at
13
*
14
* http://www.apache.org/licenses/LICENSE-2.0
15
*
16
* Unless required by applicable law or agreed to in writing, software
17
* distributed under the License is distributed on an "AS IS" BASIS,
18
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
* See the License for the specific language governing permissions and
20
* limitations under the License.
21
*/
22
23
#include "geode_globals.hpp"
24
#include "
geode_types.hpp
"
25
30
namespace
apache
{
31
namespace
geode
{
32
namespace
client {
33
40
class
CPPCACHE_EXPORT
CqState
{
41
public
:
42
// corresponding to geode.cache.query.internal.CqStateImpl
43
typedef
enum
{
44
STOPPED = 0,
45
RUNNING = 1,
46
CLOSED = 2,
47
CLOSING = 3,
48
INVALID
49
} StateType;
53
const
char
* toString()
const
;
54
58
bool
isRunning()
const
;
59
63
bool
isStopped()
const
;
64
68
bool
isClosed()
const
;
69
73
bool
isClosing()
const
;
74
void
setState(CqState::StateType state);
75
CqState::StateType getState();
76
77
private
:
78
StateType m_state;
79
};
80
}
// namespace client
81
}
// namespace geode
82
}
// namespace apache
83
84
#endif // GEODE_CQSTATE_H_
apache
Each enum represents a predefined RegionAttributes in a {}.
Definition:
Assert.hpp:31
geode_types.hpp
geode
CPPCACHE_EXPORT
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition:
geode_base.hpp:58
apache::geode::client::CqState
Definition:
CqState.hpp:40
Pivotal GemFire C++ Cache API Documentation