public boolean waitForResponse() { try { waitForRepliesUninterruptibly(); } catch(ReplyException e) { Throwable t = e.getCause(); //Most of these cases indicate that the PR is destroyed on the // remote VM. Which is fine, because that means the bucket was "removed" if (t instanceof CancelException) { String msg = "RemoveBucketMessage got remote cancellation,"; logger.debug(msg, t); return true; } if (t instanceof PRLocallyDestroyedException) { String msg = "RemoveBucketMessage got local destroy on the PartitionRegion "; logger.debug(msg, t); return true; } if (t instanceof ForceReattemptException) { String msg = "RemoveBucketMessage got ForceReattemptException due to local destroy on the PartitionRegion"; logger.debug(msg, t); return true; } e.handleAsUnexpected(); } return this.removed; } }
public boolean waitForResponse() { try { waitForRepliesUninterruptibly(); } catch(ReplyException e) { Throwable t = e.getCause(); //Most of these cases indicate that the PR is destroyed on the // remote VM. Which is fine, because that means the bucket was "removed" if (t instanceof CancelException) { String msg = "RemoveBucketMessage got remote cancellation,"; getDistributionManager().getLoggerI18n().fine(msg, t); return true; } if (t instanceof PRLocallyDestroyedException) { String msg = "RemoveBucketMessage got local destroy on the PartitionRegion "; getDistributionManager().getLoggerI18n().fine(msg, t); return true; } if (t instanceof ForceReattemptException) { String msg = "RemoveBucketMessage got ForceReattemptException due to local destroy on the PartitionRegion"; getDistributionManager().getLoggerI18n().fine(msg, t); return true; } e.handleAsUnexpected(); } return this.removed; } }
public Object call() { InternalDistributedMember recipient = members[finalOtherVM]; PartitionedRegion pr = (PartitionedRegion) getCache().getRegion(regionPath[0]); RemoveBucketResponse response = RemoveBucketMessage.send(recipient, pr, 0, false); if (response != null) { response.waitForRepliesUninterruptibly(); return true; } else { return Boolean.FALSE; } } })).booleanValue();
public Object call() { InternalDistributedMember recipient = members[finalOtherVM]; PartitionedRegion pr = (PartitionedRegion) getCache().getRegion(regionPath[0]); RemoveBucketResponse response = RemoveBucketMessage.send(recipient, pr, 0, false); if (response != null) { response.waitForRepliesUninterruptibly(); return true; } else { return Boolean.FALSE; } } })).booleanValue();