Skip to content

Commit

Permalink
CachePartitionIterator / ClusterWidePartition no longer necessary sin…
Browse files Browse the repository at this point in the history
…ce tenant control takes care of class loading and context
  • Loading branch information
lprimak committed Mar 25, 2021
1 parent e36c81b commit 31d9093
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
*
* Copyright (c) [2016-2020] Payara Foundation and/or its affiliates. All rights reserved.
* Copyright (c) [2016-2021] Payara Foundation and/or its affiliates. All rights reserved.
*
* The contents of this file are subject to the terms of either the GNU
* General Public License Version 2 only ("GPL") or the Common Development
Expand Down Expand Up @@ -40,7 +40,6 @@
package fish.payara.nucleus.hazelcast.admin;

import com.hazelcast.cache.impl.CacheEntry;
import com.hazelcast.cache.impl.CachePartitionsIterator;
import com.hazelcast.cache.impl.CacheProxy;
import com.hazelcast.core.DistributedObject;
import com.hazelcast.core.HazelcastInstance;
Expand Down Expand Up @@ -118,7 +117,7 @@ public void execute(AdminCommandContext context) {
CacheProxy jcache = (CacheProxy) dobject;
if (cacheName == null || cacheName.isEmpty() || cacheName.equals(jcache.getName())) {
builder.append("JCache ").append(jcache.getName()).append("\n{");
keyIterator = new CachePartitionsIterator<>(jcache, 10, true);
keyIterator = jcache.iterator();
}
}
while (keyIterator != null && keyIterator.hasNext()) {
Expand Down

0 comments on commit 31d9093

Please sign in to comment.