io.spiffe.workloadapi.Watcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-spiffe-core Show documentation
Show all versions of java-spiffe-core Show documentation
Core functionality to fetch, process and validate X.509 and JWT SVIDs and Bundles from the Workload API.
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