Skip to content

Commit 205e7e5

Browse files
committed
Doc 36472524 - [35862187->14.1.2.0.0] DOC: update Javadoc for events to clarify that synthetic events work only with distributed caches and their derivatives
[git-p4: depot-paths = "//dev/main.cpp/": change = 108164]
1 parent da956c5 commit 205e7e5

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

include/public/coherence/net/cache/CacheEvent.hpp

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
/*
2-
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
5-
* http://oss.oracle.com/licenses/upl.
5+
* https://oss.oracle.com/licenses/upl.
66
*/
77
#ifndef COH_CACHE_EVENT_HPP
88
#define COH_CACHE_EVENT_HPP
@@ -32,6 +32,13 @@ using coherence::util::ObservableMap;
3232
* same event could be as well caused by a client call to a get() method that
3333
* in turn forces an entry insertion by a cache loader.
3434
*
35+
* Not all cache service types support the dispatching of synthetic events.
36+
* Synthetic events will only be dispatched by a partitioned cache service
37+
* and its derivatives, such as a federated cache service, or by near, view,
38+
* or remote caches that are backed by a cache service that supports the
39+
* dispatching of synthetic events. In all other cases, no event will be dispatched
40+
* for synthetic events such as expiry.
41+
*
3542
* @author js 2008.06.06
3643
*/
3744
class COH_EXPORT CacheEvent
@@ -125,7 +132,7 @@ class COH_EXPORT CacheEvent
125132
*/
126133
CacheEvent(ObservableMap::Handle hMap, int32_t nId,
127134
Object::View voKey, Object::View voValueOld,
128-
Object::View voValueNew, bool fSynthetic,
135+
Object::View voValueNew, bool fSynthetic,
129136
TransformationState nTransformState);
130137

131138
/**
@@ -181,7 +188,6 @@ class COH_EXPORT CacheEvent
181188
*/
182189
CacheEvent(const CacheEvent&);
183190

184-
185191
// ----- CacheEvent interface -------------------------------------------
186192

187193
public:
@@ -264,4 +270,3 @@ class COH_EXPORT CacheEvent
264270
COH_CLOSE_NAMESPACE3
265271

266272
#endif // COH_CACHE_EVENT_HPP
267-

0 commit comments

Comments
 (0)