Class Arkitektonika.Builder
java.lang.Object
com.intellectualsites.arkitektonika.Arkitektonika.Builder
- Enclosing class:
- Arkitektonika
Builder class for
Arkitektonika instances.- See Also:
to get a new builder instance
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Initialize the Arkitektonika instance.withExecutorService(@NotNull ExecutorService executorService)Specify the executor service that should be used by the clientSpecify the base URL that the client will interact withwithVersion(@NotNull ApiVersion version)Specify the API version that the remote Arkitektonika instance uses
-
Method Details
-
withUrl
Specify the base URL that the client will interact with- Parameters:
url- Arkitektonika URL- Returns:
- The builder instance
-
withVersion
Specify the API version that the remote Arkitektonika instance uses- Parameters:
version- API version- Returns:
- The builder instance
-
withExecutorService
@NotNull public @NotNull Arkitektonika.Builder withExecutorService(@NotNull @NotNull ExecutorService executorService)Specify the executor service that should be used by the client- Parameters:
executorService- Executor service- Returns:
- The builder instance
-
build
Initialize the Arkitektonika instance. This will if no URL has been specified- Returns:
- Created Arkitektonika instance
-