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

com.bytex.snamp.gateway.groovy.AttributeValueHandler Maven / Gradle / Ivy

The newest version!
package com.bytex.snamp.gateway.groovy;

import javax.management.MBeanAttributeInfo;

/**
 * Represents attribute processor in functional style.
 * @author Roman Sakno
 * @version 2.0
 * @since 1.0
 */
public interface AttributeValueHandler {
    void handle(final String resourceName,
                final MBeanAttributeInfo metadata,
                final I attributeValue) throws E;

    static  AttributeValueHandler empty() {
        return (resourceName, metadata, attributeValue) -> {
        };
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy