All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jgroups.stack.Policy Maven / Gradle / Ivy

Go to download

This artifact provides a single jar that contains all classes required to use remote EJB and JMS, including all dependencies. It is intended for use by those not using maven, maven users should just import the EJB and JMS BOM's instead (shaded JAR's cause lots of problems with maven, as it is very easy to inadvertently end up with different versions on classes on the class path).

The newest version!
package org.jgroups.stack;

/**
 * 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 {@link Protocol#init()}, so the protocol is full initialized (all attrs and components * are set). * @author Bela Ban * @since 5.2.14 */ public interface Policy { /** * Checks that a condition is met in a given protocol * @param prot The protocol in which the policy is run * @throws Exception Thrown if the condition is not met */ void check(Protocol prot) throws Exception; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy