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

com.github.chaosfirebolt.converter.api.initialization.InitializationData Maven / Gradle / Ivy

package com.github.chaosfirebolt.converter.api.initialization;

/**
 * Represents a source used to fill the cache with data before usage.
 *
 * @param  type of the data used to fill the cache
 */
public sealed interface InitializationData permits BaseInitializationData {

  /**
   * Gets the initialization source.
   *
   * @return the source
   */
  T getData();

  /**
   * Used to perform cleanup actions on the data returned from {@link #getData()}, if necessary.
   */
  void cleanup();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy