public interface DestinationLoader
DestinationAccessor
.Modifier and Type | Method and Description |
---|---|
default io.vavr.control.Try<Destination> |
tryGetDestination(String destinationName)
Retrieves a destination for the given name.
|
io.vavr.control.Try<Destination> |
tryGetDestination(String destinationName,
DestinationOptions options)
Retrieves a destination for the given name and configuration options.
|
@Nonnull default io.vavr.control.Try<Destination> tryGetDestination(@Nonnull String destinationName)
The returned Try
object will contain a
DestinationNotFoundException
in case the
destination could not be found or a
DestinationAccessException
with more details in
case something else went wrong.
If the returned Try
object contains no Exception it will always contain a non-null Destination
value.
destinationName
- The name of the destination to obtain.Try
object containing either the non-null Destination
value or an exception.@Nonnull io.vavr.control.Try<Destination> tryGetDestination(@Nonnull String destinationName, @Nonnull DestinationOptions options)
The returned Try
object will contain a
DestinationNotFoundException
in case the
destination could not be found or a
DestinationAccessException
with more details in
case something else went wrong.
If the returned Try
object contains no Exception it will always contain a non-null Destination
value.
destinationName
- The name of the destination to obtain.options
- Additional settings to modify the behaviour of the destination loader.Try
object containing either the non-null Destination
value or an exception.Copyright © 2020 SAP SE. All rights reserved.