public class RegionRemover extends java.lang.Object implements java.util.concurrent.Callable<java.util.Set<ProtectedRegion>>
| Constructor and Description |
|---|
RegionRemover(RegionManager manager,
ProtectedRegion region)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<ProtectedRegion> |
call() |
RemovalStrategy |
getRemovalStrategy()
GSet a parent removal strategy.
|
void |
setRemovalStrategy(RemovalStrategy removalStrategy)
Set a parent removal strategy.
|
public RegionRemover(RegionManager manager, ProtectedRegion region)
manager - a region managerregion - the region to remove@Nullable public RemovalStrategy getRemovalStrategy()
setRemovalStrategy(RemovalStrategy)public void setRemovalStrategy(@Nullable
RemovalStrategy removalStrategy)
null to have the code
check for children and throw an error if any are found.removalStrategy - a removal strategy, or null to error if children existpublic java.util.Set<ProtectedRegion> call() throws java.lang.Exception
call in interface java.util.concurrent.Callable<java.util.Set<ProtectedRegion>>java.lang.Exception