Class CheckForAbsenceOfRED

java.lang.Object
org.jgroups.stack.CheckForAbsenceOfRED
All Implemented Interfaces:
Policy

public class CheckForAbsenceOfRED extends Object implements Policy
If either UNICAST3 or NAKACK2 are missing, then this policy checks that RED is not in the protocol stack.
Since:
5.2.14
  • Field Details

    • UNICAST3

      protected static final Class<? extends Protocol> UNICAST3
    • NAKACK2

      protected static final Class<? extends Protocol> NAKACK2
    • RED

      protected static final Class<? extends Protocol> RED
  • Constructor Details

    • CheckForAbsenceOfRED

      public CheckForAbsenceOfRED()
  • Method Details

    • check

      public void check(Protocol prot) throws Exception
      Description copied from interface: Policy
      Checks that a condition is met in a given protocol
      Specified by:
      check in interface Policy
      Parameters:
      prot - The protocol in which the policy is run
      Throws:
      Exception - Thrown if the condition is not met
    • isCallerRunsHandler

      protected static boolean isCallerRunsHandler(RejectedExecutionHandler h)