You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by ds...@apache.org on 2016/02/11 01:39:32 UTC
[58/61] [abbrv] incubator-geode git commit: GEODE-268: Adding
explanation to OperationContext.isClientUpdate()
GEODE-268: Adding explanation to OperationContext.isClientUpdate()
This closes #43
Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/99e4aaf4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/99e4aaf4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/99e4aaf4
Branch: refs/heads/feature/GEODE-831
Commit: 99e4aaf450ef8f9e25f5755d03dc73d73085200c
Parents: 28f5391
Author: Dave Barnes <db...@pivotal.io>
Authored: Mon Nov 23 12:23:08 2015 -0800
Committer: Dan Smith <up...@apache.org>
Committed: Tue Feb 9 22:52:15 2016 -0800
----------------------------------------------------------------------
.../gemstone/gemfire/cache/operations/OperationContext.java | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/99e4aaf4/gemfire-core/src/main/java/com/gemstone/gemfire/cache/operations/OperationContext.java
----------------------------------------------------------------------
diff --git a/gemfire-core/src/main/java/com/gemstone/gemfire/cache/operations/OperationContext.java b/gemfire-core/src/main/java/com/gemstone/gemfire/cache/operations/OperationContext.java
index ab9b442..5cae85d 100644
--- a/gemfire-core/src/main/java/com/gemstone/gemfire/cache/operations/OperationContext.java
+++ b/gemfire-core/src/main/java/com/gemstone/gemfire/cache/operations/OperationContext.java
@@ -481,7 +481,11 @@ public abstract class OperationContext {
public abstract boolean isPostOperation();
/**
- * True if the context is created before sending the updates to a client.
+ * When called post-operation, returns true if the operation was one that performed an update.
+ * An update occurs when one of the following methods on <code>getOperationCode()</code> returns true:
+ * <code>isPut()</code>, <code>isPutAll()</code>, <code>isDestroy()</code>, <code>isRemoveAll()</code>,
+ * <code>isInvalidate()</code>, <code>isRegionCreate()</code>, <code>isRegionClear()</code>, <code>isRegionDestroy()</code>.
+ * Otherwise, returns false.
*
* @since 6.6
*/