Class ImmutableCloudFoundryClientFactory
- java.lang.Object
-
- com.sap.cloudfoundry.client.facade.adapters.CloudFoundryClientFactory
-
- com.sap.cloudfoundry.client.facade.adapters.ImmutableCloudFoundryClientFactory
-
@Generated("org.immutables.processor.ProxyProcessor") public final class ImmutableCloudFoundryClientFactory extends CloudFoundryClientFactory
Immutable implementation ofCloudFoundryClientFactory.Use the builder to create immutable instances:
ImmutableCloudFoundryClientFactory.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableCloudFoundryClientFactory.BuilderBuilds instances of typeImmutableCloudFoundryClientFactory.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutableCloudFoundryClientFactory.Builderbuilder()Creates a builder forImmutableCloudFoundryClientFactory.static ImmutableCloudFoundryClientFactorycopyOf(CloudFoundryClientFactory instance)Creates an immutable copy of aCloudFoundryClientFactoryvalue.booleanequals(Object another)This instance is equal to all instances ofImmutableCloudFoundryClientFactorythat have equal attribute values.Optional<Integer>getConnectionPoolSize()Optional<Duration>getConnectTimeout()Optional<Duration>getSslHandshakeTimeout()Optional<Integer>getThreadPoolSize()inthashCode()Computes a hash code from attributes:sslHandshakeTimeout,connectTimeout,connectionPoolSize,threadPoolSize.StringtoString()Prints the immutable valueCloudFoundryClientFactorywith attribute values.ImmutableCloudFoundryClientFactorywithConnectionPoolSize(int value)Copy the current immutable object by setting a present value for the optionalconnectionPoolSizeattribute.ImmutableCloudFoundryClientFactorywithConnectionPoolSize(Optional<Integer> optional)Copy the current immutable object by setting an optional value for theconnectionPoolSizeattribute.ImmutableCloudFoundryClientFactorywithConnectTimeout(Duration value)Copy the current immutable object by setting a present value for the optionalconnectTimeoutattribute.ImmutableCloudFoundryClientFactorywithConnectTimeout(Optional<? extends Duration> optional)Copy the current immutable object by setting an optional value for theconnectTimeoutattribute.ImmutableCloudFoundryClientFactorywithSslHandshakeTimeout(Duration value)Copy the current immutable object by setting a present value for the optionalsslHandshakeTimeoutattribute.ImmutableCloudFoundryClientFactorywithSslHandshakeTimeout(Optional<? extends Duration> optional)Copy the current immutable object by setting an optional value for thesslHandshakeTimeoutattribute.ImmutableCloudFoundryClientFactorywithThreadPoolSize(int value)Copy the current immutable object by setting a present value for the optionalthreadPoolSizeattribute.ImmutableCloudFoundryClientFactorywithThreadPoolSize(Optional<Integer> optional)Copy the current immutable object by setting an optional value for thethreadPoolSizeattribute.-
Methods inherited from class com.sap.cloudfoundry.client.facade.adapters.CloudFoundryClientFactory
createClient, createDopplerClient, getOrCreateConnectionContext
-
-
-
-
Method Detail
-
getSslHandshakeTimeout
public Optional<Duration> getSslHandshakeTimeout()
- Specified by:
getSslHandshakeTimeoutin classCloudFoundryClientFactory- Returns:
- The value of the
sslHandshakeTimeoutattribute
-
getConnectTimeout
public Optional<Duration> getConnectTimeout()
- Specified by:
getConnectTimeoutin classCloudFoundryClientFactory- Returns:
- The value of the
connectTimeoutattribute
-
getConnectionPoolSize
public Optional<Integer> getConnectionPoolSize()
- Specified by:
getConnectionPoolSizein classCloudFoundryClientFactory- Returns:
- The value of the
connectionPoolSizeattribute
-
getThreadPoolSize
public Optional<Integer> getThreadPoolSize()
- Specified by:
getThreadPoolSizein classCloudFoundryClientFactory- Returns:
- The value of the
threadPoolSizeattribute
-
withSslHandshakeTimeout
public final ImmutableCloudFoundryClientFactory withSslHandshakeTimeout(Duration value)
Copy the current immutable object by setting a present value for the optionalsslHandshakeTimeoutattribute.- Parameters:
value- The value for sslHandshakeTimeout- Returns:
- A modified copy of
thisobject
-
withSslHandshakeTimeout
public final ImmutableCloudFoundryClientFactory withSslHandshakeTimeout(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for thesslHandshakeTimeoutattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for sslHandshakeTimeout- Returns:
- A modified copy of
thisobject
-
withConnectTimeout
public final ImmutableCloudFoundryClientFactory withConnectTimeout(Duration value)
Copy the current immutable object by setting a present value for the optionalconnectTimeoutattribute.- Parameters:
value- The value for connectTimeout- Returns:
- A modified copy of
thisobject
-
withConnectTimeout
public final ImmutableCloudFoundryClientFactory withConnectTimeout(Optional<? extends Duration> optional)
Copy the current immutable object by setting an optional value for theconnectTimeoutattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for connectTimeout- Returns:
- A modified copy of
thisobject
-
withConnectionPoolSize
public final ImmutableCloudFoundryClientFactory withConnectionPoolSize(int value)
Copy the current immutable object by setting a present value for the optionalconnectionPoolSizeattribute.- Parameters:
value- The value for connectionPoolSize- Returns:
- A modified copy of
thisobject
-
withConnectionPoolSize
public final ImmutableCloudFoundryClientFactory withConnectionPoolSize(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for theconnectionPoolSizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for connectionPoolSize- Returns:
- A modified copy of
thisobject
-
withThreadPoolSize
public final ImmutableCloudFoundryClientFactory withThreadPoolSize(int value)
Copy the current immutable object by setting a present value for the optionalthreadPoolSizeattribute.- Parameters:
value- The value for threadPoolSize- Returns:
- A modified copy of
thisobject
-
withThreadPoolSize
public final ImmutableCloudFoundryClientFactory withThreadPoolSize(Optional<Integer> optional)
Copy the current immutable object by setting an optional value for thethreadPoolSizeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for threadPoolSize- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(Object another)
This instance is equal to all instances ofImmutableCloudFoundryClientFactorythat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:sslHandshakeTimeout,connectTimeout,connectionPoolSize,threadPoolSize.
-
toString
public String toString()
Prints the immutable valueCloudFoundryClientFactorywith attribute values.
-
copyOf
public static ImmutableCloudFoundryClientFactory copyOf(CloudFoundryClientFactory instance)
Creates an immutable copy of aCloudFoundryClientFactoryvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable CloudFoundryClientFactory instance
-
builder
public static ImmutableCloudFoundryClientFactory.Builder builder()
Creates a builder forImmutableCloudFoundryClientFactory.ImmutableCloudFoundryClientFactory.builder() .sslHandshakeTimeout(java.time.Duration) // optionalsslHandshakeTimeout.connectTimeout(java.time.Duration) // optionalconnectTimeout.connectionPoolSize(Integer) // optionalconnectionPoolSize.threadPoolSize(Integer) // optionalthreadPoolSize.build();- Returns:
- A new ImmutableCloudFoundryClientFactory builder
-
-