-
public final class ConfigClass to build a runtime configuration for Batch SDK
-
-
Field Summary
Fields Modifier and Type Field Description private Stringapikeyprivate LoggerDelegateloggerDelegateprivate LoggerLevelloggerLevelprivate Integermigrations
-
Constructor Summary
Constructors Constructor Description Config()Constructor
-
Method Summary
Modifier and Type Method Description StringgetApikey()Get the Batch API Key. voidsetApikey(@Nullable() String apikey)Set the Batch SDK API Key LoggerDelegategetLoggerDelegate()Get the current logger delegate voidsetLoggerDelegate(@Nullable() LoggerDelegate delegate)Set if Batch should send its logs to an object of yours (default = null)Be careful with your implementation: setting this can impact stability and performanceYou should only use it if you know what you are doing. LoggerLevelgetLoggerLevel()Get the current logger level voidsetLoggerLevel(@NonNull() LoggerLevel level)Set the log level Batch should use IntegergetMigrations()Get the migrations configuration voidsetMigrations(@Nullable() Integer migrations)Set the current migrations related configuration Configcopy()Make deep copy of this configuration -
-
Method Detail
-
setApikey
void setApikey(@Nullable() String apikey)
Set the Batch SDK API Key
- Parameters:
apikey- The Batch SDK API Key
-
getLoggerDelegate
@Nullable() LoggerDelegate getLoggerDelegate()
Get the current logger delegate
-
setLoggerDelegate
void setLoggerDelegate(@Nullable() LoggerDelegate delegate)
Set if Batch should send its logs to an object of yours (default = null)Be careful with your implementation: setting this can impact stability and performanceYou should only use it if you know what you are doing.
- Parameters:
delegate- An object implementing LoggerDelegate
-
getLoggerLevel
@NonNull() LoggerLevel getLoggerLevel()
Get the current logger level
-
setLoggerLevel
void setLoggerLevel(@NonNull() LoggerLevel level)
Set the log level Batch should use
- Parameters:
level- The level of the logger to set
-
getMigrations
@Nullable() Integer getMigrations()
Get the migrations configuration
-
setMigrations
void setMigrations(@Nullable() Integer migrations)
Set the current migrations related configuration
- Parameters:
migrations- The migrations to disable
-
-
-
-