Package org.jgroups.stack
Interface Policy
- All Known Implementing Classes:
CheckCallerRunsPolicy,CheckForAbsenceOfRED
public interface Policy
A policy implementation checks that a condition is met or throws an exception if not. A condition could be for
example the check if a given protocol is present, an attribute is within a given range etc.
Policies are called after Protocol.init(), so the protocol is full initialized (all attrs and components
are set).
- Since:
- 5.2.14
-
Method Summary
-
Method Details
-
check
Checks that a condition is met in a given protocol- Parameters:
prot- The protocol in which the policy is run- Throws:
Exception- Thrown if the condition is not met
-