public class RegionRemover extends Object implements Callable<Set<ProtectedRegion>>
| Constructor and Description |
|---|
RegionRemover(RegionManager manager,
ProtectedRegion region)
Create a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
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 Set<ProtectedRegion> call() throws Exception
call in interface Callable<Set<ProtectedRegion>>ExceptionCopyright © 2015. All Rights Reserved.