Package org.apache.qpid.jms.provider
Class ProviderFutureFactory
- java.lang.Object
-
- org.apache.qpid.jms.provider.ProviderFutureFactory
-
public abstract class ProviderFutureFactory extends Object
Factory for provider future instances that will create specific versions based on configuration.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROVIDER_FUTURE_TYPE_KEY
-
Constructor Summary
Constructors Constructor Description ProviderFutureFactory()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static ProviderFutureFactorycreate(Map<String,String> providerOptions)Create a new Providerabstract ProviderFuturecreateFuture()abstract ProviderFuturecreateFuture(ProviderSynchronization synchronization)abstract ProviderFuturecreateUnfailableFuture()
-
-
-
Field Detail
-
PROVIDER_FUTURE_TYPE_KEY
public static final String PROVIDER_FUTURE_TYPE_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
create
public static ProviderFutureFactory create(Map<String,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.
-
createFuture
public abstract ProviderFuture createFuture(ProviderSynchronization synchronization)
- Parameters:
synchronization- TheProviderSynchronizationto assign to the returnedProviderFuture.- Returns:
- a new ProviderFuture instance.
-
createUnfailableFuture
public abstract ProviderFuture createUnfailableFuture()
- Returns:
- a ProviderFuture that treats failures as success calls that simply complete the operation.
-
-