public enum Options extends Enum<Options>
Options that can be set to control the behavior of the OCI Java SDK.
| Modifier and Type | Method and Description |
|---|---|
static boolean |
getShouldAutoCloseResponseInputStream()
Returns the boolean indicating if the SDK should auto-close the InputStream returned from the
response once the stream has been read until the content-length of the stream.
|
static boolean |
getUseOfRealmSpecificEndpointTemplateByDefault()
Returns the boolean indicating if the SDK should use realm-specific endpoint templates or
not.
|
static void |
shouldAutoCloseResponseInputStream(boolean shouldAutoClose)
Sets the boolean value to indicate if the SDK should auto-close the InputStream stream
returned from the response once the stream has been read until the content-length of the
stream Note : This has been added to automatically release connections from the connection
pool when using the Apache Connector since the Apache Connector uses connection pooling by
default
|
static Options |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Options[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static Options[] values()
for (Options c : Options.values()) System.out.println(c);
public static Options valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic static void shouldAutoCloseResponseInputStream(boolean shouldAutoClose)
Sets the boolean value to indicate if the SDK should auto-close the InputStream stream returned from the response once the stream has been read until the content-length of the stream Note : This has been added to automatically release connections from the connection pool when using the Apache Connector since the Apache Connector uses connection pooling by default
public static boolean getShouldAutoCloseResponseInputStream()
Returns the boolean indicating if the SDK should auto-close the InputStream returned from the response once the stream has been read until the content-length of the stream.
public static boolean getUseOfRealmSpecificEndpointTemplateByDefault()
Returns the boolean indicating if the SDK should use realm-specific endpoint templates or not.
Copyright © 2016–2024. All rights reserved.