public interface SplitBrainProtectionService
Modifier and Type | Method and Description |
---|---|
void |
ensureNoSplitBrain(String splitBrainProtectionName,
SplitBrainProtectionOn requiredSplitBrainProtectionPermissionType)
Ensures that the split brain protection with the given name is present.
|
SplitBrainProtection |
getSplitBrainProtection(String splitBrainProtectionName)
Returns the
SplitBrainProtection instance for a given split brain protection name. |
@Nonnull SplitBrainProtection getSplitBrainProtection(@Nonnull String splitBrainProtectionName) throws IllegalArgumentException
SplitBrainProtection
instance for a given split brain protection name.splitBrainProtectionName
- name of the split brain protectionSplitBrainProtection
IllegalArgumentException
- if no split brain protection found for given nameNullPointerException
- if splitBrainProtectionName is nullvoid ensureNoSplitBrain(@Nullable String splitBrainProtectionName, @Nonnull SplitBrainProtectionOn requiredSplitBrainProtectionPermissionType) throws SplitBrainProtectionException
splitBrainProtectionName
- split brain protection name to ensure, can be null or emptyrequiredSplitBrainProtectionPermissionType
- type of split brain protection requiredSplitBrainProtectionException
- if split brain protection defined and not presentCopyright © 2023 Hazelcast, Inc.. All rights reserved.