public final class ServiceConfiguration extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ServiceConfiguration.Builder<TYPE>
Builder of service configurations.
|
static interface |
ServiceConfiguration.Configurable<TYPE>
Interface defining a configurable object.
|
| Modifier and Type | Field and Description |
|---|---|
static ServiceConfiguration |
DEFAULT_CONFIGURATION
Empty configuration constant.
The configuration has all the values set to their default. |
| Modifier and Type | Method and Description |
|---|---|
static ServiceConfiguration.Builder<ServiceConfiguration> |
builder()
Returns a service configuration builder.
|
ServiceConfiguration.Builder<ServiceConfiguration> |
builderFrom()
Returns a service configuration builder initialized with this configuration.
|
static ServiceConfiguration.Builder<ServiceConfiguration> |
builderFrom(ServiceConfiguration initialConfiguration)
Returns a service configuration builder initialized with the specified configuration.
|
boolean |
equals(Object o) |
Class<? extends Log> |
getLogClassOr(Class<? extends Log> valueIfNotSet)
Returns the log class (null by default).
|
Looper |
getResultLooperOr(Looper valueIfNotSet)
Returns the looper used for dispatching the results from the service (null by default).
|
Class<? extends Runner> |
getRunnerClassOr(Class<? extends Runner> valueIfNotSet)
Returns the runner class (null by default).
|
int |
hashCode() |
String |
toString() |
public static final ServiceConfiguration DEFAULT_CONFIGURATION
@Nonnull public static ServiceConfiguration.Builder<ServiceConfiguration> builder()
@Nonnull public static ServiceConfiguration.Builder<ServiceConfiguration> builderFrom(@Nullable ServiceConfiguration initialConfiguration)
initialConfiguration - the initial configuration.@Nonnull public ServiceConfiguration.Builder<ServiceConfiguration> builderFrom()
public Class<? extends Log> getLogClassOr(@Nullable Class<? extends Log> valueIfNotSet)
valueIfNotSet - the default value if none was set.public Looper getResultLooperOr(@Nullable Looper valueIfNotSet)
valueIfNotSet - the default value if none was set.