public final class ImmutableProcessConfig extends Object implements ProcessConfig
ProcessConfig.
Use the builder to create immutable instances:
ImmutableProcessConfig.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableProcessConfig.Builder
Builds instances of type
ImmutableProcessConfig. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableProcessConfig.Builder |
builder()
Creates a builder for
ImmutableProcessConfig. |
static ImmutableProcessConfig |
copyOf(ProcessConfig instance)
Creates an immutable copy of a
ProcessConfig value. |
boolean |
daemonProcess() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableProcessConfig that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
daemonProcess, stopTimeoutInMillis. |
long |
stopTimeoutInMillis() |
String |
toString()
Prints the immutable value
ProcessConfig with attribute values. |
ImmutableProcessConfig |
withDaemonProcess(boolean value)
Copy the current immutable object by setting a value for the
daemonProcess attribute. |
ImmutableProcessConfig |
withStopTimeoutInMillis(long value)
Copy the current immutable object by setting a value for the
stopTimeoutInMillis attribute. |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitdefaultspublic boolean daemonProcess()
daemonProcess in interface ProcessConfigdaemonProcess attributepublic long stopTimeoutInMillis()
stopTimeoutInMillis in interface ProcessConfigstopTimeoutInMillis attributepublic final ImmutableProcessConfig withDaemonProcess(boolean value)
daemonProcess attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for daemonProcessthis objectpublic final ImmutableProcessConfig withStopTimeoutInMillis(long value)
stopTimeoutInMillis attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for stopTimeoutInMillisthis objectpublic boolean equals(Object another)
ImmutableProcessConfig that have equal attribute values.public int hashCode()
daemonProcess, stopTimeoutInMillis.public String toString()
ProcessConfig with attribute values.public static ImmutableProcessConfig copyOf(ProcessConfig instance)
ProcessConfig value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableProcessConfig.Builder builder()
ImmutableProcessConfig.
ImmutableProcessConfig.builder()
.daemonProcess(boolean) // optional daemonProcess
.stopTimeoutInMillis(long) // optional stopTimeoutInMillis
.build();
Copyright © 2022. All rights reserved.