Package com.dhemery.polling.events

Examples of com.dhemery.polling.events.ConditionUnsatisfied


     * @return whether the condition is satisfied
     */
    @Override
    public boolean evaluate(Condition condition, long failureCount) {
        boolean satisfied = evaluator.evaluate(condition, failureCount);
        Object notification = satisfied ? new ConditionSatisfied(condition, failureCount) : new ConditionUnsatisfied(condition, failureCount + 1);
        publisher.publish(notification);
        return satisfied;
    }
View Full Code Here

TOP

Related Classes of com.dhemery.polling.events.ConditionUnsatisfied

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.