VMware GemFire Native C++ Reference
9.2.4
ResultCollector.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#ifndef GEODE_RESULTCOLLECTOR_H_
4
#define GEODE_RESULTCOLLECTOR_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
#include "
SharedPtr.hpp
"
26
#include "
VectorT.hpp
"
27
#include "
CacheableBuiltins.hpp
"
28
33
namespace
apache
{
34
namespace
geode
{
35
namespace
client {
63
class
CPPCACHE_EXPORT
ResultCollector
:
public
SharedBase
{
67
public
:
68
ResultCollector
();
69
virtual
~
ResultCollector
();
83
virtual
CacheableVectorPtr
getResult(
84
uint32_t timeout =
DEFAULT_QUERY_RESPONSE_TIMEOUT
);
91
virtual
void
addResult(
CacheablePtr
& resultOfSingleExecution);
97
virtual
void
endResults();
104
virtual
void
clearResults();
105
106
private
:
107
CacheableVectorPtr
m_resultList;
108
volatile
bool
m_isResultReady;
109
};
110
}
// namespace client
111
}
// namespace geode
112
}
// namespace apache
113
114
#endif // GEODE_RESULTCOLLECTOR_H_
apache
Each enum represents a predefined RegionAttributes in a {}.
Definition:
Assert.hpp:31
geode_types.hpp
SharedPtr.hpp
geode
CacheableBuiltins.hpp
Contains generic template definitions for Cacheable types and instantiations for built-in types.
CPPCACHE_EXPORT
#define CPPCACHE_EXPORT
Defines a Geode CPPCACHE export.
Definition:
geode_base.hpp:58
DEFAULT_QUERY_RESPONSE_TIMEOUT
#define DEFAULT_QUERY_RESPONSE_TIMEOUT
default timeout for query response
Definition:
geode_base.hpp:176
apache::geode::client::SharedBase
Definition:
SharedBase.hpp:40
VectorT.hpp
apache::geode::client::ResultCollector
Definition:
ResultCollector.hpp:63
apache::geode::client::SharedPtr< CacheableVector >
Pivotal GemFire C++ Cache API Documentation