GridGain C++
thin-client/include/ignite/thin/cache/event/java_cache_entry_event_filter.h
Go to the documentation of this file.
1 /*
2  * Copyright 2022 GridGain Systems, Inc. and Contributors.
3  *
4  * Licensed under the GridGain Community Edition License (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * https://www.gridgain.com/products/software/community-edition/gridgain-community-edition-license
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
22 #ifndef _IGNITE_THIN_CACHE_EVENT_JAVA_CACHE_ENTRY_EVENT_FILTER
23 #define _IGNITE_THIN_CACHE_EVENT_JAVA_CACHE_ENTRY_EVENT_FILTER
24 
26 
27 #include <ignite/impl/thin/platform_java_object_factory_proxy.h>
28 
29 namespace ignite
30 {
31  namespace impl
32  {
33  namespace thin
34  {
35  namespace cache
36  {
37  class CacheClientImpl;
38  }
39  }
40  }
41 
42  namespace thin
43  {
44  namespace cache
45  {
46  namespace event
47  {
55  {
56  friend class ignite::impl::thin::cache::CacheClientImpl;
57  public:
62  {
63  // No-op.
64  }
65 
71  JavaCacheEntryEventFilter(const std::string& factoryClassName) :
72  factory(new impl::thin::PlatformJavaObjectFactoryProxy(
73  impl::thin::FactoryType::USER, factoryClassName))
74  {
75  // No-op.
76  }
77 
82  {
83  // No-op.
84  }
85 
91  const std::string& GetFactoryClassName() const
92  {
93  return factory.Get()->GetFactoryClassName();
94  }
95 
105  template<typename T>
106  void SetProperty(const std::string& name, const T& value)
107  {
108  factory.Get()->template SetProperty<T>(name, value);
109  }
110 
116  {
117  factory.Get()->ClearProperties();
118  }
119 
120  private:
122  impl::thin::SP_PlatformJavaObjectFactoryProxy factory;
123  };
124  }
125  }
126  }
127 }
128 
129 #endif //_IGNITE_THIN_CACHE_EVENT_JAVA_CACHE_ENTRY_EVENT_FILTER
ignite
Ignite API.
Definition: cache.h:47
cache_entry_event.h
ignite::thin::cache::event::JavaCacheEntryEventFilter::~JavaCacheEntryEventFilter
virtual ~JavaCacheEntryEventFilter()
Destructor.
Definition: thin-client/include/ignite/thin/cache/event/java_cache_entry_event_filter.h:81
ignite::thin::cache::event::JavaCacheEntryEventFilter::JavaCacheEntryEventFilter
JavaCacheEntryEventFilter(const std::string &factoryClassName)
Constructor.
Definition: thin-client/include/ignite/thin/cache/event/java_cache_entry_event_filter.h:71
ignite::thin::cache::event::JavaCacheEntryEventFilter::ClearProperties
void ClearProperties()
Clear set properties.
Definition: thin-client/include/ignite/thin/cache/event/java_cache_entry_event_filter.h:115
ignite::thin::cache::event::JavaCacheEntryEventFilter::JavaCacheEntryEventFilter
JavaCacheEntryEventFilter()
Default constructor.
Definition: thin-client/include/ignite/thin/cache/event/java_cache_entry_event_filter.h:61
ignite::thin::cache::event::JavaCacheEntryEventFilter
Java cache entry event filter.
Definition: thin-client/include/ignite/thin/cache/event/java_cache_entry_event_filter.h:54
ignite::thin::cache::event::JavaCacheEntryEventFilter::GetFactoryClassName
const std::string & GetFactoryClassName() const
Get Java remote filter factory class name.
Definition: thin-client/include/ignite/thin/cache/event/java_cache_entry_event_filter.h:91
ignite::thin::cache::event::JavaCacheEntryEventFilter::SetProperty
void SetProperty(const std::string &name, const T &value)
Add property.
Definition: thin-client/include/ignite/thin/cache/event/java_cache_entry_event_filter.h:106