Uses of Class
org.dataloader.Try
Packages that use Try
-
Uses of Try in org.dataloader
Fields in org.dataloader declared as TryFields in org.dataloader with type parameters of type TryModifier and TypeFieldDescriptionprivate final CompletableFuture
<List<Try<V>>> DataLoaderHelper.NOT_SUPPORTED
DataLoaderHelper.NOT_SUPPORTED_LIST
Methods in org.dataloader that return TryModifier and TypeMethodDescriptionstatic <V> Try
<V> Try.alwaysFailed()
This returns a Try that has always failed with an consistent exception.static <V> Try
<V> Creates a Try that has failed with the provided throwable<U> Try
<U> Flats maps the Try into another Try type<U> Try
<U> Maps the Try into another Try with a different typeCalled the recover function of the Try failed otherwise returns this if it was successful.static <V> Try
<V> Try.succeeded
(V value) Creates a Try that has succeeded with the provided valuestatic <V> Try
<V> Calls the callable and if it returns a value, the Try is successful with that value or if throws and exception the Try captures thatMethods in org.dataloader that return types with arguments of type TryModifier and TypeMethodDescriptionprivate CompletableFuture
<List<Try<V>>> DataLoaderHelper.getFromValueCache
(List<K> keys) default CompletableFuture
<List<Try<V>>> Gets the specified keys from the value cache, in a batch call.static <V> CompletableFuture
<Try<V>> Try.tryFuture
(CompletionStage<V> completionStage) Creates a CompletableFuture that, when it completes, will capture into a Try whether the given completionStage was successful or notstatic <V> CompletionStage
<Try<V>> Try.tryStage
(CompletionStage<V> completionStage) Creates a CompletionStage that, when it completes, will capture into a Try whether the given completionStage was successful or notMethod parameters in org.dataloader with type arguments of type TryModifier and TypeMethodDescription<U> Try
<U> Flats maps the Try into another Try typestatic <K,
V> DataLoader <K, V> DataLoader.newDataLoaderWithTry
(BatchLoader<K, Try<V>> batchLoadFunction) Deprecated.static <K,
V> DataLoader <K, V> DataLoader.newDataLoaderWithTry
(BatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newDataLoaderWithTry
(BatchLoaderWithContext<K, Try<V>> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newDataLoaderWithTry
(BatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoaderWithTry
(BatchLoader<K, Try<V>> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size) where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoaderWithTry
(BatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function and with the provided options where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoaderWithTry
(BatchLoaderWithContext<K, Try<V>> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size) where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newDataLoaderWithTry
(BatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function and with the provided options where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry
(MappedBatchLoader<K, Try<V>> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry
(MappedBatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry
(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoader.newMappedDataLoaderWithTry
(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Deprecated.useDataLoaderFactory
insteadstatic <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoaderWithTry
(MappedBatchLoader<K, Try<V>> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size) where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoaderWithTry
(MappedBatchLoader<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function and with the provided options where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoaderWithTry
(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction) Creates new DataLoader with the specified batch loader function and default options (batching, caching and unlimited batch size) where the batch loader function returns a list ofTry
objects.static <K,
V> DataLoader <K, V> DataLoaderFactory.newMappedDataLoaderWithTry
(MappedBatchLoaderWithContext<K, Try<V>> batchLoadFunction, DataLoaderOptions options) Creates new DataLoader with the specified batch loader function and with the provided options where the batch loader function returns a list ofTry
objects. -
Uses of Try in org.dataloader.impl
Methods in org.dataloader.impl that return types with arguments of type Try
DataLoaderFactory
instead