geode-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dschnei...@apache.org
Subject [7/8] incubator-geode git commit: TombstoneService is no longer a ResourceListener
Date Sat, 25 Jun 2016 00:21:41 GMT
TombstoneService is no longer a ResourceListener


Project: http://git-wip-us.apache.org/repos/asf/incubator-geode/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-geode/commit/8f367182
Tree: http://git-wip-us.apache.org/repos/asf/incubator-geode/tree/8f367182
Diff: http://git-wip-us.apache.org/repos/asf/incubator-geode/diff/8f367182

Branch: refs/heads/feature/GEODE-1420
Commit: 8f36718211e6cca80637ce6ce0286f4e8ab3442a
Parents: 4a74ddf
Author: Darrel Schneider <dschneider@pivotal.io>
Authored: Fri Jun 24 16:13:50 2016 -0700
Committer: Darrel Schneider <dschneider@pivotal.io>
Committed: Fri Jun 24 16:13:50 2016 -0700

----------------------------------------------------------------------
 .../gemfire/internal/cache/TombstoneService.java  | 18 +-----------------
 1 file changed, 1 insertion(+), 17 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-geode/blob/8f367182/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TombstoneService.java
----------------------------------------------------------------------
diff --git a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TombstoneService.java
b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TombstoneService.java
index cdf1e1b..6989ed2 100644
--- a/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TombstoneService.java
+++ b/geode-core/src/main/java/com/gemstone/gemfire/internal/cache/TombstoneService.java
@@ -20,8 +20,6 @@ import com.gemstone.gemfire.CancelException;
 import com.gemstone.gemfire.SystemFailure;
 import com.gemstone.gemfire.cache.util.ObjectSizer;
 import com.gemstone.gemfire.distributed.internal.DistributionConfig;
-import com.gemstone.gemfire.internal.cache.control.MemoryEvent;
-import com.gemstone.gemfire.internal.cache.control.ResourceListener;
 import com.gemstone.gemfire.internal.cache.versions.CompactVersionHolder;
 import com.gemstone.gemfire.internal.cache.versions.VersionSource;
 import com.gemstone.gemfire.internal.cache.versions.VersionTag;
@@ -50,7 +48,7 @@ import java.util.concurrent.atomic.AtomicLong;
  * and timing out tombstones.
  * 
  */
-public class TombstoneService  implements ResourceListener<MemoryEvent> {
+public class TombstoneService {
   private static final Logger logger = LogService.getLogger();
   
   /**
@@ -949,18 +947,4 @@ public class TombstoneService  implements ResourceListener<MemoryEvent>
{
       currentTombstone = null;
     }
   } // class TombstoneSweeper
-
-  /* (non-Javadoc)
-   * @see com.gemstone.gemfire.internal.cache.control.ResourceListener#onEvent(java.lang.Object)
-   */
-  @Override
-  public void onEvent(MemoryEvent event) {
-    if (event.isLocal()) {
-      if (event.getState().isEviction() && !event.getPreviousState().isEviction())
{
-        this.replicatedTombstoneSweeper.forceBatchExpiration();
-      }
-    }
-  }
-
-
 }


Mime
View raw message