Apache Geode Native C++ Reference 1.15.0
FixedPartitionResolver.hpp
1#pragma once
2
3#ifndef GEODE_FIXEDPARTITIONRESOLVER_H_
4#define GEODE_FIXEDPARTITIONRESOLVER_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 "CacheableBuiltins.hpp"
24#include "PartitionResolver.hpp"
25
26namespace apache {
27namespace geode {
28namespace client {
29
30class EntryEvent;
31
74class APACHE_GEODE_EXPORT FixedPartitionResolver : public PartitionResolver {
79 public:
90 virtual const std::string& getPartitionName(const EntryEvent& opDetails) = 0;
91};
92} // namespace client
93} // namespace geode
94} // namespace apache
95
96#endif // GEODE_FIXEDPARTITIONRESOLVER_H_
Contains generic template definitions for Cacheable types and instantiations for built-in types.
Represents an entry event affecting an entry, including its identity and the the circumstances of the...
Definition: EntryEvent.hpp:44
Implementers of interface FixedPartitionResolver helps to achieve explicit mapping of a "user defined...
Definition: FixedPartitionResolver.hpp:74
virtual const std::string & getPartitionName(const EntryEvent &opDetails)=0
public methods
Implement the PartitionResolver interface to enable custom partitioning on the PartitionedRegion.
Definition: PartitionResolver.hpp:77

Apache Geode C++ Cache API Documentation