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

org.jgroups.protocols.rules.SampleRule Maven / Gradle / Ivy

package org.jgroups.protocols.rules;

/**
 * @author Bela Ban
 * @since  3.3
 */
public class SampleRule extends Rule {
    public String name() {
        return "SampleRule";
    }

    public String description() {
        return "Sample rule";
    }

    public boolean eval() {
        return true;
    }

    public String condition() {
        return "Dummy condition";
    }

    public void trigger() throws Throwable {
        System.out.println("SampleRule was triggered");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy