Class ProviderFutureFactory


  • public abstract class ProviderFutureFactory
    extends java.lang.Object
    Factory for provider future instances that will create specific versions based on configuration.
    • Field Detail

      • PROVIDER_FUTURE_TYPE_KEY

        public static final java.lang.String PROVIDER_FUTURE_TYPE_KEY
        See Also:
        Constant Field Values
    • Constructor Detail

      • ProviderFutureFactory

        public ProviderFutureFactory()
    • Method Detail

      • create

        public static ProviderFutureFactory create​(java.util.Map<java.lang.String,​java.lang.String> providerOptions)
        Create a new Provider
        Parameters:
        providerOptions - Configuration options to be consumed by this factory create method
        Returns:
        a new ProviderFutureFactory that will be used to create the desired future types.
      • createFuture

        public abstract ProviderFuture createFuture()
        Returns:
        a new ProviderFuture instance.
      • createUnfailableFuture

        public abstract ProviderFuture createUnfailableFuture()
        Returns:
        a ProviderFuture that treats failures as success calls that simply complete the operation.