Package org.apache.qpid.jms.provider
Class ProviderFutureFactory
java.lang.Object
org.apache.qpid.jms.provider.ProviderFutureFactory
Factory for provider future instances that will create specific versions based on
configuration.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ProviderFutureFactory
Create a new Providerabstract ProviderFuture
abstract ProviderFuture
createFuture
(ProviderSynchronization synchronization) abstract ProviderFuture
-
Field Details
-
PROVIDER_FUTURE_TYPE_KEY
- See Also:
-
-
Constructor Details
-
ProviderFutureFactory
public ProviderFutureFactory()
-
-
Method Details
-
create
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
- Returns:
- a new ProviderFuture instance.
-
createFuture
- Parameters:
synchronization
- TheProviderSynchronization
to assign to the returnedProviderFuture
.- Returns:
- a new ProviderFuture instance.
-
createUnfailableFuture
- Returns:
- a ProviderFuture that treats failures as success calls that simply complete the operation.
-