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

io.spiffe.workloadapi.Watcher Maven / Gradle / Ivy

Go to download

Core functionality to fetch, process and validate X.509 and JWT SVIDs and Bundles from the Workload API.

There is a newer version: 0.8.11
Show newest version
package io.spiffe.workloadapi;

/**
 * Watches updates of type T.
 *
 * @param  is the type of the updates.
 */
public interface Watcher {

    /**
     * Method called in case of success getting an update.
     * @param update the instance of type T
     */
    void onUpdate(final T update);

    /**
     * Method called in case there is an error watching for updates.
     * @param e the throwable exception that was caught
     */
    void onError(final Throwable e);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy