Skip navigation links
A B C D E F G H I J K L M N O P R S T U V W 

A

accept(I) - Method in interface com.ibm.cos.v2.utils.FunctionalUtils.UnsafeConsumer
 
add(String, Object) - Method in class com.ibm.cos.v2.utils.ToString
Add a field to the to-string result.
addClassLoaderOverride(Class<?>, ClassLoader) - Static method in class com.ibm.cos.v2.utils.internal.ClassLoaderHelperTestBackdoor
 
addEnvironmentVariableOverride(String, String) - Static method in class com.ibm.cos.v2.utils.internal.SystemSettingUtilsTestBackdoor
 
AddingTrailingDataSubscriber<T> - Class in com.ibm.cos.v2.utils.async
Allows to send trailing data before invoking onComplete on the downstream subscriber.
AddingTrailingDataSubscriber(Subscriber<? super T>, Supplier<Iterable<T>>) - Constructor for class com.ibm.cos.v2.utils.async.AddingTrailingDataSubscriber
 
allMatchingHeaders(Map<String, List<String>>, String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Deprecated.
Use SdkHttpHeaders#matchingHeaders
allMatchingHeadersFromCollection(Map<String, List<String>>, Collection<String>) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Deprecated.
Use SdkHttpHeaders#matchingHeaders
allOfExceptionForwarded(CompletableFuture<?>[]) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
Similar to CompletableFuture.allOf(CompletableFuture[]), but when any future is completed exceptionally, forwards the exception to other futures.
appendUri(String, String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Append the given path to the given baseUri, separating them with a slash, if required.
apply(Consumer<? super L>, Consumer<? super R>) - Method in class com.ibm.cos.v2.utils.Either
Apply the consumers to the left or the right value depending on which is present.
apply(T) - Method in interface com.ibm.cos.v2.utils.FunctionalUtils.UnsafeFunction
 
apply(BiFunction<LeftT, RightT, ReturnT>) - Method in class com.ibm.cos.v2.utils.Pair
Apply the function to both the left and right values and return the transformed result.
applyMutation(Consumer<B>) - Method in interface com.ibm.cos.v2.utils.builder.SdkBuilder
A convenience operator that takes something that will mutate the builder in some way and allows inclusion of it in chaining operations.
AttributeMap - Class in com.ibm.cos.v2.utils
A map from AttributeMap.Key<T> to T that ensures the values stored with a key matches the type associated with the key.
AttributeMap.Builder - Class in com.ibm.cos.v2.utils
 
AttributeMap.Key<T> - Class in com.ibm.cos.v2.utils
An abstract class extended by pseudo-enums defining the key for data that is stored in the AttributeMap.
AttributeMap.Key.UnsafeValueType - Class in com.ibm.cos.v2.utils
Useful for parameterized types.
AttributeMap.LazyValue<T> - Interface in com.ibm.cos.v2.utils
A value that is evaluated lazily.
AttributeMap.LazyValueSource - Interface in com.ibm.cos.v2.utils
A source for other values, provided to a AttributeMap.LazyValue when the value is resolved.
available() - Method in class com.ibm.cos.v2.utils.LookaheadInputStream
 
awaitTermination(long, TimeUnit) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 

B

Base16 - Class in com.ibm.cos.v2.utils.internal
A Base 16 codec API, which encodes into hex string in upper case.
Base16Codec - Class in com.ibm.cos.v2.utils.internal
A Base 16 codec implementation.
Base16Lower - Class in com.ibm.cos.v2.utils.internal
A Base 16 codec API, which encodes into hex string in lower case.
BaseSubscriberAdapter<T,U> - Class in com.ibm.cos.v2.utils.async
Base of subscribers that can adapt one type to another.
BaseSubscriberAdapter(Subscriber<? super U>) - Constructor for class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
 
BinaryUtils - Class in com.ibm.cos.v2.utils
Utilities for encoding and decoding binary data to and from different forms.
blockingTransferTo(ByteBuffer) - Method in class com.ibm.cos.v2.utils.async.ByteBufferStoringSubscriber
Like ByteBufferStoringSubscriber.transferTo(ByteBuffer), but blocks until some data has been written.
BufferingSubscriber<T> - Class in com.ibm.cos.v2.utils.async
 
BufferingSubscriber(Subscriber<? super List<T>>, int) - Constructor for class com.ibm.cos.v2.utils.async.BufferingSubscriber
 
build() - Method in class com.ibm.cos.v2.utils.async.DelegatingBufferingSubscriber.Builder
 
build() - Method in class com.ibm.cos.v2.utils.AttributeMap.Builder
 
build() - Method in interface com.ibm.cos.v2.utils.builder.Buildable
 
build() - Method in interface com.ibm.cos.v2.utils.builder.SdkBuilder
An immutable object that is created from the properties that have been set on the builder.
build() - Method in class com.ibm.cos.v2.utils.cache.CachedSupplier.Builder
Create a CachedSupplier using the current configuration of this builder.
build() - Method in class com.ibm.cos.v2.utils.cache.lru.LruCache.Builder
 
build() - Method in class com.ibm.cos.v2.utils.cache.RefreshResult.Builder
Build a RefreshResult using the values currently configured in this builder.
build() - Method in class com.ibm.cos.v2.utils.ImmutableMap.Builder
Generates and returns a new ImmutableMap instance which contains all the entries added into the Builder by put() method.
build() - Method in class com.ibm.cos.v2.utils.internal.DefaultConditionalDecorator.Builder
 
build() - Method in class com.ibm.cos.v2.utils.ThreadFactoryBuilder
Create the ThreadFactory with the configuration currently applied to this builder.
build() - Method in class com.ibm.cos.v2.utils.ToString
Convert this result to a string.
Buildable - Interface in com.ibm.cos.v2.utils.builder
 
builder() - Static method in class com.ibm.cos.v2.utils.async.DelegatingBufferingSubscriber
 
Builder() - Constructor for class com.ibm.cos.v2.utils.async.DelegatingBufferingSubscriber.Builder
 
builder() - Static method in class com.ibm.cos.v2.utils.AttributeMap
 
builder(Supplier<RefreshResult<T>>) - Static method in class com.ibm.cos.v2.utils.cache.CachedSupplier
Retrieve a builder that can be used for creating a CachedSupplier.
builder(Function<K, V>) - Static method in class com.ibm.cos.v2.utils.cache.lru.LruCache
 
builder() - Static method in class com.ibm.cos.v2.utils.cache.lru.LruCache
 
builder(T) - Static method in class com.ibm.cos.v2.utils.cache.RefreshResult
Get a builder for creating a RefreshResult.
builder() - Static method in class com.ibm.cos.v2.utils.ImmutableMap
Returns a new MapParameterBuilder instance.
Builder() - Constructor for class com.ibm.cos.v2.utils.ImmutableMap.Builder
 
builder() - Static method in class com.ibm.cos.v2.utils.internal.DefaultConditionalDecorator
 
Builder() - Constructor for class com.ibm.cos.v2.utils.internal.DefaultConditionalDecorator.Builder
 
builder(String) - Static method in class com.ibm.cos.v2.utils.ToString
Create a to-string result builder for the given class name.
ByteBufferStoringSubscriber - Class in com.ibm.cos.v2.utils.async
An implementation of Subscriber that stores ByteBuffer events it receives for retrieval.
ByteBufferStoringSubscriber(long) - Constructor for class com.ibm.cos.v2.utils.async.ByteBufferStoringSubscriber
Create a subscriber that stores at least minimumBytesBuffered in memory for retrieval.
ByteBufferStoringSubscriber.TransferResult - Enum in com.ibm.cos.v2.utils.async

C

CachedSupplier<T> - Class in com.ibm.cos.v2.utils.cache
A wrapper for a Supplier that applies certain caching rules to the retrieval of its value, including customizable pre-fetching behaviors for updating values as they get close to expiring so that not all threads have to block to update the value.
CachedSupplier.Builder<T> - Class in com.ibm.cos.v2.utils.cache
CachedSupplier.PrefetchStrategy - Interface in com.ibm.cos.v2.utils.cache
The way in which the cache should be pre-fetched when the data's RefreshResult.prefetchTime() arrives.
CachedSupplier.StaleValueBehavior - Enum in com.ibm.cos.v2.utils.cache
How the cached supplier should behave when a stale value is retrieved from the underlying supplier or the underlying supplier fails while the cached value is stale.
cachedValueName(String) - Method in class com.ibm.cos.v2.utils.cache.CachedSupplier.Builder
Configures a name for the cached value.
cancel() - Method in class com.ibm.cos.v2.utils.async.DelegatingSubscription
 
cancel() - Method in class com.ibm.cos.v2.utils.async.DemandIgnoringSubscription
 
cancel() - Method in class com.ibm.cos.v2.utils.async.InputStreamConsumingPublisher
cancel() - Method in class com.ibm.cos.v2.utils.async.OutputStreamPublisher
 
cancel() - Method in class com.ibm.cos.v2.utils.CancellableOutputStream
Cancel writing to the stream.
cancel() - Method in class com.ibm.cos.v2.utils.internal.async.EmptySubscription
 
CancellableOutputStream - Class in com.ibm.cos.v2.utils
An implementation of OutputStream to which writing can be CancellableOutputStream.cancel()ed.
CancellableOutputStream() - Constructor for class com.ibm.cos.v2.utils.CancellableOutputStream
 
capitalize(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Capitalizes a String changing the first character to title case as per Character.toTitleCase(int).
classLoader(Class<?>...) - Static method in class com.ibm.cos.v2.utils.ClassLoaderHelper
Attempt to get class loader that loads the classes and fallback to the thread context classloader if null.
ClassLoaderHelper - Class in com.ibm.cos.v2.utils
 
ClassLoaderHelperTestBackdoor - Class in com.ibm.cos.v2.utils.internal
This is a backdoor to add overrides to the results of querying ClassLoaderHelpers.
clear() - Method in class com.ibm.cos.v2.utils.ImmutableMap
Unsupported methods
clearClassLoaderOverrides() - Static method in class com.ibm.cos.v2.utils.internal.ClassLoaderHelperTestBackdoor
 
clearEnvironmentVariableOverrides() - Static method in class com.ibm.cos.v2.utils.internal.SystemSettingUtilsTestBackdoor
 
clock(Clock) - Method in class com.ibm.cos.v2.utils.cache.CachedSupplier.Builder
Configure the clock used for this cached supplier.
close() - Method in class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
close() - Method in class com.ibm.cos.v2.utils.async.OutputStreamPublisher
 
close() - Method in class com.ibm.cos.v2.utils.AttributeMap
 
close() - Method in class com.ibm.cos.v2.utils.cache.CachedSupplier
Free any resources consumed by the prefetch strategy this supplier is using.
close() - Method in interface com.ibm.cos.v2.utils.cache.CachedSupplier.PrefetchStrategy
Free any resources associated with the strategy.
close() - Method in class com.ibm.cos.v2.utils.cache.NonBlocking
 
close() - Method in class com.ibm.cos.v2.utils.Lazy
 
close() - Method in interface com.ibm.cos.v2.utils.SdkAutoCloseable
closeIfCloseable(Object, Logger) - Static method in class com.ibm.cos.v2.utils.IoUtils
closeIfCloseableV2(Object, Logger) - Static method in class com.ibm.cos.v2.utils.IoUtils
Closes the given Closeable quietly.
closeQuietly(AutoCloseable, Logger) - Static method in class com.ibm.cos.v2.utils.IoUtils
closeQuietlyV2(AutoCloseable, Logger) - Static method in class com.ibm.cos.v2.utils.IoUtils
Closes the given Closeable quietly.
CodecUtils - Class in com.ibm.cos.v2.utils.internal
Codec internal utilities
CodegenNamingUtils - Class in com.ibm.cos.v2.utils.internal
Internal class used by the code generator and release scripts to produce sanitized names.
CollectionUtils - Class in com.ibm.cos.v2.utils
 
com.ibm.cos.v2.utils - package com.ibm.cos.v2.utils
 
com.ibm.cos.v2.utils.async - package com.ibm.cos.v2.utils.async
 
com.ibm.cos.v2.utils.builder - package com.ibm.cos.v2.utils.builder
 
com.ibm.cos.v2.utils.cache - package com.ibm.cos.v2.utils.cache
 
com.ibm.cos.v2.utils.cache.lru - package com.ibm.cos.v2.utils.cache.lru
 
com.ibm.cos.v2.utils.http - package com.ibm.cos.v2.utils.http
 
com.ibm.cos.v2.utils.internal - package com.ibm.cos.v2.utils.internal
 
com.ibm.cos.v2.utils.internal.async - package com.ibm.cos.v2.utils.internal.async
 
com.ibm.cos.v2.utils.internal.proxy - package com.ibm.cos.v2.utils.internal.proxy
 
ComparableUtils - Class in com.ibm.cos.v2.utils
 
CompletableFutureUtils - Class in com.ibm.cos.v2.utils
Utility class for working with CompletableFuture.
complete() - Method in class com.ibm.cos.v2.utils.async.SimplePublisher
Indicate that no more SimplePublisher.send(Object) calls will be made, and that stream of messages is completed successfully.
computeIfAbsent(AttributeMap.Key<T>, Supplier<T>) - Method in class com.ibm.cos.v2.utils.AttributeMap.Builder
Add a mapping between the provided key and value, if the current value for the key is null.
computeMD5Hash(InputStream) - Static method in class com.ibm.cos.v2.utils.Md5Utils
Computes the MD5 hash of the data in the given input stream and returns it as an array of bytes.
computeMD5Hash(byte[]) - Static method in class com.ibm.cos.v2.utils.Md5Utils
Computes the MD5 hash of the given data and returns it as an array of bytes.
computeMD5Hash(File) - Static method in class com.ibm.cos.v2.utils.Md5Utils
Computes the MD5 of the given file.
ConditionalDecorator<T> - Interface in com.ibm.cos.v2.utils
An interface that defines a class that contains a transform for another type as well as a condition for whether that transform should be applied.
containsKey(AttributeMap.Key<T>) - Method in class com.ibm.cos.v2.utils.AttributeMap
Return true if the provided key is configured in this map.
containsKey(Object) - Method in class com.ibm.cos.v2.utils.ImmutableMap
Inherited methods
containsValue(Object) - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
contextClassLoader() - Static method in class com.ibm.cos.v2.utils.ClassLoaderHelper
Attempt to get the current thread's class loader and fallback to the system classloader if null
convertValue(Object) - Method in class com.ibm.cos.v2.utils.AttributeMap.Key
Validate the provided value is of the correct type and convert it to the proper type for this option.
copy() - Method in class com.ibm.cos.v2.utils.AttributeMap.Builder
 
copy() - Method in class com.ibm.cos.v2.utils.AttributeMap
 
copy() - Method in interface com.ibm.cos.v2.utils.builder.CopyableBuilder
A shallow copy of this object created by building an immutable T and then transforming it back to a builder.
copy(Consumer<? super B>) - Method in interface com.ibm.cos.v2.utils.builder.ToCopyableBuilder
A convenience method for calling ToCopyableBuilder.toBuilder(), updating the returned builder and then calling SdkBuilder.build().
copy(InputStream, OutputStream) - Static method in class com.ibm.cos.v2.utils.IoUtils
Copies all bytes from the given input stream to the given output stream.
copy(InputStream, OutputStream, long) - Static method in class com.ibm.cos.v2.utils.IoUtils
Copies all bytes from the given input stream to the given output stream.
CopyableBuilder<B extends CopyableBuilder<B,T>,T extends ToCopyableBuilder<B,T>> - Interface in com.ibm.cos.v2.utils.builder
A special type of SdkBuilder that can be used when the built type implements ToCopyableBuilder.
copyAllBytesFrom(ByteBuffer) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Returns a copy of all the bytes from the given ByteBuffer, from the beginning to the buffer's limit; or null if the input is null.
copyBytesFrom(ByteBuffer) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Returns a copy of the bytes from the given ByteBuffer, ranging from the the buffer's current position to the buffer's limit; or null if the input is null.
copyBytesFrom(ByteBuffer, int) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
This behaves identically to BinaryUtils.copyBytesFrom(ByteBuffer), except that the readLimit acts as a limit to the number of bytes that should be read from the byte buffer.
copyRemainingBytesFrom(ByteBuffer) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
 
create(Predicate<T>, UnaryOperator<T>) - Static method in interface com.ibm.cos.v2.utils.ConditionalDecorator
 
create(Subscriber<? super U>, Function<T, U>) - Static method in class com.ibm.cos.v2.utils.internal.MappingSubscriber
 
create(String) - Static method in class com.ibm.cos.v2.utils.ToString
Create a to-string result for the given class name.

D

DaemonThreadFactory - Class in com.ibm.cos.v2.utils
An decorator for ThreadFactory that sets all threads it creates to be daemon threads.
DaemonThreadFactory(ThreadFactory) - Constructor for class com.ibm.cos.v2.utils.DaemonThreadFactory
 
daemonThreads(Boolean) - Method in class com.ibm.cos.v2.utils.ThreadFactoryBuilder
Whether the threads created by the factory should be daemon threads.
DateUtils - Class in com.ibm.cos.v2.utils
Utilities for parsing and formatting dates.
debug(Supplier<String>) - Method in class com.ibm.cos.v2.utils.Logger
Checks if debug is enabled and if so logs the supplied message
debug(Supplier<String>, Throwable) - Method in class com.ibm.cos.v2.utils.Logger
Checks if debug is enabled and if so logs the supplied message and exception
decode(String) - Static method in class com.ibm.cos.v2.utils.internal.Base16
Decodes the given base 16 encoded string, skipping carriage returns, line feeds and spaces as needed.
decode(byte[]) - Static method in class com.ibm.cos.v2.utils.internal.Base16
Decodes the given base 16 encoded bytes.
decode(byte[], int) - Method in class com.ibm.cos.v2.utils.internal.Base16Codec
 
decode(String) - Static method in class com.ibm.cos.v2.utils.internal.Base16Lower
Decodes the given base 16 encoded string, skipping carriage returns, line feeds and spaces as needed.
decode(byte[]) - Static method in class com.ibm.cos.v2.utils.internal.Base16Lower
Decodes the given base 16 encoded bytes.
decorate(T, List<ConditionalDecorator<T>>) - Static method in interface com.ibm.cos.v2.utils.ConditionalDecorator
This function will transform an initially supplied value with provided transforming, or decorating, functions that are conditionally and sequentially applied.
deepCopyMap(Map<T, ? extends List<U>>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
Perform a deep copy of the provided map of lists.
deepCopyMap(Map<T, ? extends List<U>>, Supplier<Map<T, List<U>>>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
Perform a deep copy of the provided map of lists.
deepUnmodifiableMap(Map<T, ? extends List<U>>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
Perform a deep copy of the provided map of lists, and make the result unmodifiable.
deepUnmodifiableMap(Map<T, ? extends List<U>>, Supplier<Map<T, List<U>>>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
Perform a deep copy of the provided map of lists, and make the result unmodifiable.
DefaultConditionalDecorator<T> - Class in com.ibm.cos.v2.utils.internal
 
DefaultConditionalDecorator.Builder<T> - Class in com.ibm.cos.v2.utils.internal
 
defaultValue() - Method in enum com.ibm.cos.v2.utils.JavaSystemSetting
 
defaultValue() - Method in enum com.ibm.cos.v2.utils.ProxyEnvironmentSetting
 
defaultValue() - Method in enum com.ibm.cos.v2.utils.ProxySystemSetting
 
defaultValue() - Method in interface com.ibm.cos.v2.utils.SystemSetting
The default value of the setting (or empty if there is no default).
delegate(Subscriber<? super ByteBuffer>) - Method in class com.ibm.cos.v2.utils.async.DelegatingBufferingSubscriber.Builder
 
DelegatingBufferingSubscriber - Class in com.ibm.cos.v2.utils.async
 
DelegatingBufferingSubscriber(Long, Subscriber<? super ByteBuffer>) - Constructor for class com.ibm.cos.v2.utils.async.DelegatingBufferingSubscriber
 
DelegatingBufferingSubscriber.Builder - Class in com.ibm.cos.v2.utils.async
 
DelegatingSubscriber<T,U> - Class in com.ibm.cos.v2.utils.async
 
DelegatingSubscriber(Subscriber<? super U>) - Constructor for class com.ibm.cos.v2.utils.async.DelegatingSubscriber
 
DelegatingSubscription - Class in com.ibm.cos.v2.utils.async
 
DelegatingSubscription(Subscription) - Constructor for class com.ibm.cos.v2.utils.async.DelegatingSubscription
 
DemandIgnoringSubscription - Class in com.ibm.cos.v2.utils.async
 
DemandIgnoringSubscription(Subscription) - Constructor for class com.ibm.cos.v2.utils.async.DemandIgnoringSubscription
 
DependencyValidate - Class in com.ibm.cos.v2.utils
Utilities for loading of classes and objects which have optional dependencies, and therefore need to be safely checked at runtime in order to use.
doBlockingWrite(InputStream) - Method in class com.ibm.cos.v2.utils.async.InputStreamConsumingPublisher
Write the provided input stream to the stream subscribed to this publisher.
downstreamDemand - Variable in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
The amount of unfulfilled demand the downstream subscriber has opened against us.
drainInputStream(InputStream) - Static method in class com.ibm.cos.v2.utils.IoUtils
Read all remaining data in the stream.

E

Either<L,R> - Class in com.ibm.cos.v2.utils
Represents a value that can be one of two types.
empty() - Static method in class com.ibm.cos.v2.utils.AttributeMap
 
EmptySubscription - Class in com.ibm.cos.v2.utils.internal.async
A NoOp implementation of Subscription interface.
EmptySubscription(Subscriber<?>) - Constructor for class com.ibm.cos.v2.utils.internal.async.EmptySubscription
 
encode(byte[]) - Static method in class com.ibm.cos.v2.utils.internal.Base16
Returns a base 16 encoded byte array of the given bytes.
encode(byte[]) - Method in class com.ibm.cos.v2.utils.internal.Base16Codec
 
encode(byte[]) - Static method in class com.ibm.cos.v2.utils.internal.Base16Lower
Returns a base 16 encoded byte array of the given bytes.
encodeAndFlattenFormData(Map<String, List<String>>) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Encode the provided form data using SdkHttpUtils.encodeFormData(Map) and then flatten them into a string that can be used as the body of a form data request.
encodeAndFlattenQueryParameters(Map<String, List<String>>) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Encode the provided query parameters using SdkHttpUtils.encodeQueryParameters(Map) and then flatten them into a string that can be used as the query string in a URL.
encodeAsString(byte...) - Static method in class com.ibm.cos.v2.utils.internal.Base16
Returns a base 16 encoded string (in upper case) of the given bytes.
encodeAsString(byte...) - Static method in class com.ibm.cos.v2.utils.internal.Base16Lower
Returns a base 16 encoded string (in lower case) of the given bytes.
encodeFormData(Map<String, List<String>>) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Encode each of the keys and values in the provided form data using SdkHttpUtils.formDataEncode(String).
encodeQueryParameters(Map<String, List<String>>) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Encode each of the keys and values in the provided query parameters using SdkHttpUtils.urlEncode(String).
entrySet() - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
EnumUtils - Class in com.ibm.cos.v2.utils.internal
Utility class for working with Enums.
environmentVariable() - Method in enum com.ibm.cos.v2.utils.JavaSystemSetting
 
environmentVariable() - Method in enum com.ibm.cos.v2.utils.ProxyEnvironmentSetting
 
environmentVariable() - Method in enum com.ibm.cos.v2.utils.ProxySystemSetting
 
environmentVariable() - Method in interface com.ibm.cos.v2.utils.SystemSetting
The environment variable of the setting (or null if there is no environment variable for this setting).
equals(Object) - Method in class com.ibm.cos.v2.utils.AttributeMap
 
equals(Object) - Method in class com.ibm.cos.v2.utils.Either
 
equals(Object) - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
equals(Object) - Method in class com.ibm.cos.v2.utils.internal.DefaultConditionalDecorator
 
equals(Object) - Method in class com.ibm.cos.v2.utils.Pair
 
equals(String, String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Compares two Strings, returning true if they represent equal sequences of characters.
error(Throwable) - Method in class com.ibm.cos.v2.utils.async.SimplePublisher
Indicate that no more SimplePublisher.send(Object) calls will be made, and that streaming of messages has failed.
error(Supplier<String>) - Method in class com.ibm.cos.v2.utils.Logger
Checks if error is enabled and if so logs the supplied message
error(Supplier<String>, Throwable) - Method in class com.ibm.cos.v2.utils.Logger
Checks if error is enabled and if so logs the supplied message and exception
errorAsCompletionException(Throwable) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
Wraps the given error in a CompletionException if necessary.
EventListeningSubscriber<T> - Class in com.ibm.cos.v2.utils.async
A Subscriber that can invoke callbacks during various parts of the subscriber and subscription lifecycle.
EventListeningSubscriber(Subscriber<T>, Runnable, Consumer<Throwable>, Runnable) - Constructor for class com.ibm.cos.v2.utils.async.EventListeningSubscriber
 
exclusiveBetween(U, U, T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument object fall between the two exclusive values specified; otherwise, throws an exception with the specified message.
exclusiveBetween(long, long, long, String) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified primitive value falls between the two exclusive values specified; otherwise, throws an exception with the specified message.
exclusiveBetween(double, double, double, String) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified primitive value falls between the two exclusive values specified; otherwise, throws an exception with the specified message.
execute(Runnable) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
ExecutorUtils - Class in com.ibm.cos.v2.utils
Utilities that make it easier to create, use and destroy ExecutorServices.

F

failedFuture(Throwable) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
Convenience method for creating a future that is immediately completed exceptionally with the given Throwable.
fetch(Supplier<RefreshResult<T>>) - Method in interface com.ibm.cos.v2.utils.cache.CachedSupplier.PrefetchStrategy
Invoke the provided supplier to retrieve the refresh result.
fetch(Supplier<RefreshResult<T>>) - Method in class com.ibm.cos.v2.utils.cache.NonBlocking
 
FilteringSubscriber<T> - Class in com.ibm.cos.v2.utils.async
 
FilteringSubscriber(Subscriber<? super T>, Predicate<T>) - Constructor for class com.ibm.cos.v2.utils.async.FilteringSubscriber
 
filterMap(Map<K, V>, Predicate<Map.Entry<K, V>>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
Filters a map based on a condition
findFirstOccurrence(String, char...) - Static method in class com.ibm.cos.v2.utils.StringUtils
Searches a string for the first occurrence of a character specified by a list of characters.
firstIfPresent(List<T>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
 
firstMatchingHeader(Map<String, List<String>>, String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Deprecated.
Use SdkHttpHeaders#firstMatchingHeader
firstMatchingHeaderFromCollection(Map<String, List<String>>, Collection<String>) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Deprecated.
Use SdkHttpHeaders#firstMatchingHeader
firstPresent(Optional<T>, Supplier<Optional<T>>...) - Static method in class com.ibm.cos.v2.utils.OptionalUtils
Attempt to find a present-valued optional in a list of optionals.
firstPresent(Optional<T>, Supplier<T>) - Static method in class com.ibm.cos.v2.utils.OptionalUtils
 
FlatteningSubscriber<U> - Class in com.ibm.cos.v2.utils.async
 
FlatteningSubscriber(Subscriber<? super U>) - Constructor for class com.ibm.cos.v2.utils.async.FlatteningSubscriber
 
flattenQueryParameters(Map<String, List<String>>) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Flatten the provided query parameters into a string that can be used as the query string in a URL.
flattenQueryParameters(StringBuilder, Map<String, List<String>>) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Flatten the provided query parameters into a string that can be used as the query string in a URL.
flush() - Method in class com.ibm.cos.v2.utils.async.OutputStreamPublisher
 
formatIso8601Date(Instant) - Static method in class com.ibm.cos.v2.utils.DateUtils
Formats the specified date as an ISO 8601 string.
formatRfc1123Date(Instant) - Static method in class com.ibm.cos.v2.utils.DateUtils
Formats the specified date as an RFC 1123 string.
formatRfc822Date(Instant) - Static method in class com.ibm.cos.v2.utils.DateUtils
Formats the specified date as an RFC 822 string.
formatUnixTimestampInstant(Instant) - Static method in class com.ibm.cos.v2.utils.DateUtils
Formats the give Instant object into an Unix timestamp with millisecond decimal precision.
formDataEncode(String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Encode a string according to RFC 1630: encoding for form data.
forwardExceptionTo(CompletableFuture<T>, CompletableFuture<?>) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
Forward the Throwable from src to dst.
forwardResultTo(CompletableFuture<T>, CompletableFuture<T>) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
Completes the dst future based on the result of the src future asynchronously on the provided Executor and return the src future.
forwardResultTo(CompletableFuture<T>, CompletableFuture<T>, Executor) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
Completes the dst future based on the result of the src future asynchronously on the provided Executor and return the src future.
forwardTransformedExceptionTo(CompletableFuture<T>, CompletableFuture<?>, Function<Throwable, Throwable>) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
Forward the Throwable that can be transformed as per the transformationFunction from src to dst.
forwardTransformedResultTo(CompletableFuture<SourceT>, CompletableFuture<DestT>, Function<SourceT, DestT>) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
Completes the dst future based on the result of the src future, synchronously, after applying the provided transformation Function if successful.
fromBase64(String) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Converts a Base64-encoded string to the original byte data.
fromBase64Bytes(byte[]) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Converts a Base64-encoded string to the original byte data.
fromBytes(byte[], Charset) - Static method in class com.ibm.cos.v2.utils.StringUtils
Encode the given bytes as a string using the given charset
fromEnvironmentSettings(String) - Static method in interface com.ibm.cos.v2.utils.ProxyConfigProvider
Returns a new ProxyConfigProvider that retrieves proxy configuration from environment variables.
fromHex(String) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Converts a Hex-encoded data string to the original byte data.
fromNullable(L, R) - Static method in class com.ibm.cos.v2.utils.Either
Create a new Optional<Either> from two possibly null values.
fromSystemEnvironmentSettings(Boolean, Boolean, String) - Static method in interface com.ibm.cos.v2.utils.ProxyConfigProvider
Returns a ProxyConfigProvider based on the specified settings for using system properties, environment variables, and the scheme.
fromSystemPropertySettings(String) - Static method in interface com.ibm.cos.v2.utils.ProxyConfigProvider
Returns a new ProxyConfigProvider that retrieves proxy configuration from system properties.
fulfillDownstreamDemand() - Method in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
This method is called when demand from the downstream subscriber needs to be fulfilled.
fulfillDownstreamDemand() - Method in class com.ibm.cos.v2.utils.async.DelegatingBufferingSubscriber
 
fulfillDownstreamDemand() - Method in class com.ibm.cos.v2.utils.async.FlatteningSubscriber
 
FunctionalUtils - Class in com.ibm.cos.v2.utils
 
FunctionalUtils.UnsafeConsumer<I> - Interface in com.ibm.cos.v2.utils
Equivalent of Consumer that throws a checked exception.
FunctionalUtils.UnsafeFunction<T,R> - Interface in com.ibm.cos.v2.utils
Equivalent of Function that throws a checked exception.
FunctionalUtils.UnsafeRunnable - Interface in com.ibm.cos.v2.utils
Equivalent of Runnable that throws a checked exception.
FunctionalUtils.UnsafeSupplier<T> - Interface in com.ibm.cos.v2.utils
Equivalent of Supplier that throws a checked exception.

G

get(AttributeMap.Key<T>) - Method in class com.ibm.cos.v2.utils.AttributeMap.Builder
Get the value for the provided key.
get(AttributeMap.Key<T>) - Method in class com.ibm.cos.v2.utils.AttributeMap
Get the value associated with the provided key from this map.
get(AttributeMap.LazyValueSource) - Method in interface com.ibm.cos.v2.utils.AttributeMap.LazyValue
 
get(AttributeMap.Key<T>) - Method in interface com.ibm.cos.v2.utils.AttributeMap.LazyValueSource
 
get() - Method in class com.ibm.cos.v2.utils.cache.CachedSupplier
 
get(K) - Method in class com.ibm.cos.v2.utils.cache.lru.LruCache
Get a value based on the key.
get() - Method in interface com.ibm.cos.v2.utils.FunctionalUtils.UnsafeSupplier
 
get(Object) - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
getBooleanValue() - Method in interface com.ibm.cos.v2.utils.SystemSetting
Attempt to load a system setting from System.getProperty(String) and System.getenv(String).
getBooleanValueOrThrow() - Method in interface com.ibm.cos.v2.utils.SystemSetting
Load the requested system setting as per the documentation in SystemSetting.getBooleanValue(), throwing an exception if the value was not set and had no default.
getClassLoader(Class<?>) - Static method in class com.ibm.cos.v2.utils.internal.ClassLoaderHelperTestBackdoor
 
getIntegerValue() - Method in interface com.ibm.cos.v2.utils.SystemSetting
Attempt to load a system setting from System.getProperty(String) and System.getenv(String).
getIntegerValueOrThrow() - Method in interface com.ibm.cos.v2.utils.SystemSetting
Load the requested system setting as per the documentation in SystemSetting.getIntegerValue(), throwing an exception if the value was not set and had no default.
getNonDefaultStringValue() - Method in interface com.ibm.cos.v2.utils.SystemSetting
Attempt to load a system setting from System.getProperty(String) and System.getenv(String).
getOrDefault(T, Supplier<T>) - Static method in class com.ibm.cos.v2.utils.Validate
Returns the param if non null, otherwise gets a default value from the provided Supplier.
getResource(String, boolean, Class<?>...) - Static method in class com.ibm.cos.v2.utils.ClassLoaderHelper
If classesFirst is false, retrieves the resource via the context class loader of the current thread, and if not found, via the class loaders of the optionally specified classes in the order of their specification, and if not found, from the class loader of ClassLoaderHelper as the last resort.
getResourceAsStream(String, Class<?>...) - Static method in class com.ibm.cos.v2.utils.ClassLoaderHelper
Retrieves the resource as an input stream via the context class loader of the current thread, and if not found, via the class loaders of the optionally specified classes in the order of their specification, and if not found, from the class loader of ClassLoaderHelper as the last resort.
getResourceAsStream(String, boolean, Class<?>...) - Static method in class com.ibm.cos.v2.utils.ClassLoaderHelper
If classesFirst is false, retrieves the resource as an input stream via the context class loader of the current thread, and if not found, via the class loaders of the optionally specified classes in the order of their specification, and if not found, from the class loader of ClassLoaderHelper as the last resort.
getString() - Method in class com.ibm.cos.v2.utils.StringInputStream
Returns the original string specified when this input stream was constructed.
getStringValue() - Method in enum com.ibm.cos.v2.utils.ProxyEnvironmentSetting
 
getStringValue() - Method in interface com.ibm.cos.v2.utils.SystemSetting
Attempt to load a system setting from System.getProperty(String) and System.getenv(String).
getStringValueFromEnvironmentVariable(String) - Static method in interface com.ibm.cos.v2.utils.SystemSetting
Attempt to load a system setting from System.getenv(String).
getStringValueOrThrow() - Method in interface com.ibm.cos.v2.utils.SystemSetting
Load the requested system setting as per the documentation in SystemSetting.getStringValue(), throwing an exception if the value was not set and had no default.
getValue() - Method in class com.ibm.cos.v2.utils.Lazy
 
getWrappedClass(Class<?>) - Static method in class com.ibm.cos.v2.utils.internal.ReflectionUtils
Returns the wrapped class type associated with a primitive if one is known.

H

handleStateUpdate() - Method in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
This is invoked after each downstream request or upstream onNext, onError or onComplete.
handlingStateUpdate - Variable in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
A flag that is used to ensure that only one thread is handling updates to the state of this subscriber at a time.
hashCode() - Method in class com.ibm.cos.v2.utils.AttributeMap
 
hashCode() - Method in class com.ibm.cos.v2.utils.Either
 
hashCode() - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
hashCode() - Method in class com.ibm.cos.v2.utils.internal.DefaultConditionalDecorator
 
hashCode() - Method in class com.ibm.cos.v2.utils.Pair
 
hasValue() - Method in class com.ibm.cos.v2.utils.Lazy
 
hasValue(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
 
host() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxyEnvironmentVariableConfigProvider
 
host() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxySystemPropertyConfigProvider
 
host() - Method in interface com.ibm.cos.v2.utils.ProxyConfigProvider
Gets the proxy host.
HostnameValidator - Class in com.ibm.cos.v2.utils
 
HTTPS - Static variable in interface com.ibm.cos.v2.utils.ProxyConfigProvider
Constant representing the HTTPS scheme.

I

immutableCopyOf(ByteBuffer) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Returns an immutable copy of the given ByteBuffer.
immutableCopyOfRemaining(ByteBuffer) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Returns an immutable copy of the remaining bytes of the given ByteBuffer.
ImmutableMap<K,V> - Class in com.ibm.cos.v2.utils
An immutable map that could be built by convenient constructors.
ImmutableMap.Builder<K,V> - Class in com.ibm.cos.v2.utils
A convenient builder for creating ImmutableMap instances.
inclusiveBetween(U, U, T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument object fall between the two inclusive values specified; otherwise, throws an exception with the specified message.
inclusiveBetween(long, long, long, String) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified primitive value falls between the two inclusive values specified; otherwise, throws an exception with the specified message.
inclusiveBetween(double, double, double, String) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified primitive value falls between the two inclusive values specified; otherwise, throws an exception with the specified message.
info(Supplier<String>) - Method in class com.ibm.cos.v2.utils.Logger
Checks if info is enabled and if so logs the supplied message
info(Supplier<String>, Throwable) - Method in class com.ibm.cos.v2.utils.Logger
Checks if info is enabled and if so logs the supplied message and exception
initialize() - Method in class com.ibm.cos.v2.utils.ReflectionMethodInvoker
Initializes the method invoker by finding and caching the target method from the target class that will be used for subsequent invoke operations.
initializeCachedSupplier(CachedSupplier<?>) - Method in interface com.ibm.cos.v2.utils.cache.CachedSupplier.PrefetchStrategy
Invoked when the prefetch strategy is registered with a CachedSupplier.
initializeCachedSupplier(CachedSupplier<?>) - Method in class com.ibm.cos.v2.utils.cache.NonBlocking
 
InputStreamConsumingPublisher - Class in com.ibm.cos.v2.utils.async
A publisher to which an InputStream can be written.
InputStreamConsumingPublisher() - Constructor for class com.ibm.cos.v2.utils.async.InputStreamConsumingPublisher
 
InputStreamSubscriber - Class in com.ibm.cos.v2.utils.async
Adapts a Subscriber to a InputStream.
InputStreamSubscriber() - Constructor for class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
InputStreamSubscriber(ByteBufferStoringSubscriber) - Constructor for class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
inverseMap(Map<V, K>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
Return a new map that is the inverse of the supplied map, with the values becoming the keys and vice versa.
invoke(T, Object...) - Method in class com.ibm.cos.v2.utils.ReflectionMethodInvoker
Attempt to invoke the method this proxy targets for on the given object with the given arguments.
invokeAll(Collection<? extends Callable<T>>) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
invokeAny(Collection<? extends Callable<T>>) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
invokeSafely(FunctionalUtils.UnsafeSupplier<T>) - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
 
invokeSafely(FunctionalUtils.UnsafeRunnable) - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
 
IoUtils - Class in com.ibm.cos.v2.utils
Utilities for IO operations.
isAssignableFrom(Class<T>, Class<?>, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validates that the argument can be converted to the specified class, if not throws an exception.
isBlank(CharSequence) - Static method in class com.ibm.cos.v2.utils.StringUtils
Checks if a CharSequence is empty (""), null or whitespace only.
isEmpty() - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
isEmpty(CharSequence) - Static method in class com.ibm.cos.v2.utils.StringUtils
Checks if a CharSequence is empty ("") or null.
isFalse(boolean, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the argument condition is false; otherwise throwing an exception with the specified message.
isInitialized() - Method in class com.ibm.cos.v2.utils.ReflectionMethodInvoker
Gets the initialization state of the invoker.
isInstanceOf(Class<U>, T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the argument is an instance of the specified class; otherwise throwing an exception with the specified message.
isLoggingLevelEnabled(Level) - Method in class com.ibm.cos.v2.utils.Logger
Determines if the provided log-level is enabled.
isLoggingLevelEnabled(String) - Method in class com.ibm.cos.v2.utils.Logger
Determines if the log-level passed is enabled
isNotBlank(CharSequence) - Static method in class com.ibm.cos.v2.utils.StringUtils
Checks if a CharSequence is not empty (""), not null and not whitespace only.
isNotEmpty(Map<?, ?>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
 
isNotNegative(int, String) - Static method in class com.ibm.cos.v2.utils.Validate
 
isNotNegative(long, String) - Static method in class com.ibm.cos.v2.utils.Validate
 
isNotNegative(Duration, String) - Static method in class com.ibm.cos.v2.utils.Validate
Asserts that the given duration is positive, including zero.
isNotNegativeOrNull(Long, String) - Static method in class com.ibm.cos.v2.utils.Validate
 
isNull(T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument is null; otherwise throwing an exception with the specified message.
isNullOrEmpty(Collection<?>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
 
isNullOrEmpty(Map<?, ?>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
 
isNullOrEmpty(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
 
isPositive(int, String) - Static method in class com.ibm.cos.v2.utils.Validate
Asserts that the given number is positive (non-negative and non-zero).
isPositive(long, String) - Static method in class com.ibm.cos.v2.utils.Validate
Asserts that the given number is positive (non-negative and non-zero).
isPositive(double, String) - Static method in class com.ibm.cos.v2.utils.Validate
 
isPositive(Duration, String) - Static method in class com.ibm.cos.v2.utils.Validate
Asserts that the given duration is positive (non-negative and non-zero).
isPositiveOrNull(Duration, String) - Static method in class com.ibm.cos.v2.utils.Validate
Asserts that the given duration is positive (non-negative and non-zero) or null.
isPositiveOrNull(Integer, String) - Static method in class com.ibm.cos.v2.utils.Validate
Asserts that the given boxed integer is positive (non-negative and non-zero) or null.
isPositiveOrNull(Double, String) - Static method in class com.ibm.cos.v2.utils.Validate
Asserts that the given boxed double is positive (non-negative and non-zero) or null.
isPositiveOrNull(Long, String) - Static method in class com.ibm.cos.v2.utils.Validate
Asserts that the given boxed long is positive (non-negative and non-zero) or null.
isShutdown() - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
isSingleHeader(String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
 
isTaskScheduled() - Method in class com.ibm.cos.v2.utils.cache.NonBlocking
 
isTerminated() - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
isTrue(boolean, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the argument condition is true; otherwise throwing an exception with the specified message.
isUsingStandardPort(String, Integer) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Returns true if the specified port is the standard port for the given protocol.
isWindows() - Static method in class com.ibm.cos.v2.utils.Platform
Determine whether the current operation system seems to be Windows.
IterablePublisher<T> - Class in com.ibm.cos.v2.utils.async
 
IterablePublisher(Iterable<T>) - Constructor for class com.ibm.cos.v2.utils.async.IterablePublisher
 

J

JavaSystemSetting - Enum in com.ibm.cos.v2.utils
The system properties usually provided by the Java runtime.
joinInterruptibly(CompletableFuture<T>) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
 
joinInterruptiblyIgnoringFailures(CompletableFuture<?>) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
 
joinLikeSync(CompletableFuture<T>) - Static method in class com.ibm.cos.v2.utils.CompletableFutureUtils
Joins (interruptibly) on the future, and re-throws any RuntimeExceptions or Errors just like the async task would have thrown if it was executed synchronously.

K

Key(Class<T>) - Constructor for class com.ibm.cos.v2.utils.AttributeMap.Key
 
Key(AttributeMap.Key.UnsafeValueType) - Constructor for class com.ibm.cos.v2.utils.AttributeMap.Key
 
keySet() - Method in class com.ibm.cos.v2.utils.ImmutableMap
 

L

Lazy<T> - Class in com.ibm.cos.v2.utils
A class that lazily constructs a value the first time Lazy.getValue() is invoked.
Lazy(Supplier<T>) - Constructor for class com.ibm.cos.v2.utils.Lazy
 
left(L) - Static method in class com.ibm.cos.v2.utils.Either
Create a new Either with the left type.
left() - Method in class com.ibm.cos.v2.utils.Either
 
left() - Method in class com.ibm.cos.v2.utils.Pair
 
LimitingSubscriber<T> - Class in com.ibm.cos.v2.utils.async
 
LimitingSubscriber(Subscriber<? super T>, int) - Constructor for class com.ibm.cos.v2.utils.async.LimitingSubscriber
 
loadClass(String, Class<?>...) - Static method in class com.ibm.cos.v2.utils.ClassLoaderHelper
Loads the class via the optionally specified classes in the order of their specification, and if not found, via the context class loader of the current thread, and if not found, from the caller class loader as the last resort.
loadClass(String, boolean, Class<?>...) - Static method in class com.ibm.cos.v2.utils.ClassLoaderHelper
If classesFirst is false, loads the class via the context class loader of the current thread, and if not found, via the class loaders of the optionally specified classes in the order of their specification, and if not found, from the caller class loader as the last resort.
log(Level, Supplier<String>) - Method in class com.ibm.cos.v2.utils.Logger
Log a message at the given log level (if it is enabled).
Logger - Class in com.ibm.cos.v2.utils
 
logger() - Method in class com.ibm.cos.v2.utils.Logger
 
loggerFor(Class<?>) - Static method in class com.ibm.cos.v2.utils.Logger
Static factory to get a logger instance for a given class
loggerFor(String) - Static method in class com.ibm.cos.v2.utils.Logger
Static factory to get a logger instance with a specific name.
longToByte(Long) - Static method in class com.ibm.cos.v2.utils.NumericUtils
Converts a long to a byte array
LookaheadInputStream - Class in com.ibm.cos.v2.utils
A wrapper for an InputStream that allows LookaheadInputStream.peek()ing one byte ahead in the stream.
LookaheadInputStream(InputStream) - Constructor for class com.ibm.cos.v2.utils.LookaheadInputStream
 
lowerCase(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Converts a String to lower case as per String.toLowerCase().
lowercaseFirstChar(String) - Static method in class com.ibm.cos.v2.utils.internal.CodegenNamingUtils
 
LruCache<K,V> - Class in com.ibm.cos.v2.utils.cache.lru
A thread-safe LRU (Least Recently Used) cache implementation that returns the value for a specified key, retrieving it by either getting the stored value from the cache or using a supplied function to calculate that value and add it to the cache.
LruCache.Builder<K,V> - Class in com.ibm.cos.v2.utils.cache.lru
 

M

map(Function<? super L, ? extends T>, Function<? super R, ? extends T>) - Method in class com.ibm.cos.v2.utils.Either
Maps the Either to a type and returns the resolved value (which may be from the left or the right value).
mapLeft(Function<? super L, ? extends T>) - Method in class com.ibm.cos.v2.utils.Either
Map the left most value and return a new Either reflecting the new types.
MappingSubscriber<T,U> - Class in com.ibm.cos.v2.utils.internal
Maps a subscriber of one type to another type.
mapRight(Function<? super R, ? extends T>) - Method in class com.ibm.cos.v2.utils.Either
Map the right most value and return a new Either reflecting the new types.
MapUtils - Class in com.ibm.cos.v2.utils
 
mapValues(Map<K, VInT>, Function<VInT, VOutT>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
Transforms the values of a map to another map with the same keys, using the supplied function.
mark(int) - Method in class com.ibm.cos.v2.utils.LookaheadInputStream
 
markStreamWithMaxReadLimit(InputStream) - Static method in class com.ibm.cos.v2.utils.IoUtils
If the stream supports marking, marks the stream at the current position with a readLimit value of 128 KiB.
markStreamWithMaxReadLimit(InputStream, Integer) - Static method in class com.ibm.cos.v2.utils.IoUtils
If the stream supports marking, marks the stream at the current position with a read limit specified in maxReadLimit.
max(Duration, Duration) - Static method in class com.ibm.cos.v2.utils.NumericUtils
 
maximum(T...) - Static method in class com.ibm.cos.v2.utils.ComparableUtils
Get the maximum value from a list of comparable vales.
maximumBufferInBytes(Long) - Method in class com.ibm.cos.v2.utils.async.DelegatingBufferingSubscriber.Builder
 
maxSize(Integer) - Method in class com.ibm.cos.v2.utils.cache.lru.LruCache.Builder
 
md5AsBase64(InputStream) - Static method in class com.ibm.cos.v2.utils.Md5Utils
Returns the MD5 in base64 for the data from the given input stream.
md5AsBase64(byte[]) - Static method in class com.ibm.cos.v2.utils.Md5Utils
Returns the MD5 in base64 for the given byte array.
md5AsBase64(File) - Static method in class com.ibm.cos.v2.utils.Md5Utils
Returns the MD5 in base64 for the given file.
Md5Utils - Class in com.ibm.cos.v2.utils
Utility methods for computing MD5 sums.
merge(AttributeMap) - Method in class com.ibm.cos.v2.utils.AttributeMap
Merges two AttributeMaps into one.
mergeLists(List<T>, List<T>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
Returns a new list containing the second list appended to the first list.
MetricValueNormalizer - Class in com.ibm.cos.v2.utils
 
min(Duration, Duration) - Static method in class com.ibm.cos.v2.utils.NumericUtils
 
minimum(T...) - Static method in class com.ibm.cos.v2.utils.ComparableUtils
Get the minimum value from a list of comparable vales.
mutuallyExclusive(String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Verify that only one of the objects is non null.

N

NamedThreadFactory - Class in com.ibm.cos.v2.utils
An decorator for ThreadFactory that allows naming threads based on a format.
NamedThreadFactory(ThreadFactory, String) - Constructor for class com.ibm.cos.v2.utils.NamedThreadFactory
 
newSingleDaemonThreadExecutor(int, String) - Static method in class com.ibm.cos.v2.utils.ExecutorUtils
Create a bounded-queue executor with one thread for performing background tasks.
newThread(Runnable) - Method in class com.ibm.cos.v2.utils.DaemonThreadFactory
 
newThread(Runnable) - Method in class com.ibm.cos.v2.utils.NamedThreadFactory
 
NonBlocking - Class in com.ibm.cos.v2.utils.cache
A CachedSupplier.PrefetchStrategy that will run a single thread in the background to update the value.
NonBlocking(String) - Constructor for class com.ibm.cos.v2.utils.cache.NonBlocking
Create a non-blocking prefetch strategy that uses the provided value for the name of the background thread that will be performing the update.
nonProxyHosts() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxyEnvironmentVariableConfigProvider
 
nonProxyHosts() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxySystemPropertyConfigProvider
 
nonProxyHosts() - Method in interface com.ibm.cos.v2.utils.ProxyConfigProvider
Gets the set of non-proxy hosts.
noNullElements(T[], String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument array is neither null nor contains any elements that are null; otherwise throwing an exception with the specified message.
noNullElements(T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument iterable is neither null nor contains any elements that are null; otherwise throwing an exception with the specified message.
noOpConsumer() - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
 
noOpRunnable() - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
 
normalize(double) - Static method in class com.ibm.cos.v2.utils.MetricValueNormalizer
Normalizes a metric value so that it won't upset CloudWatch when it is uploaded.
notBlank(T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument character sequence is neither null, a length of zero (no characters), empty nor whitespace; otherwise throwing an exception with the specified message.
notEmpty(T[], String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument array is neither null nor a length of zero (no elements); otherwise throwing an exception with the specified message.
notEmpty(T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument collection is neither null nor a size of zero (no elements); otherwise throwing an exception with the specified message.
notEmpty(T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument map is neither null nor a size of zero (no elements); otherwise throwing an exception with the specified message.
notEmpty(T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument character sequence is neither null nor a length of zero (no characters); otherwise throwing an exception with the specified message.
notNull(T, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified argument is not null; otherwise throwing an exception with the specified message.
numberOfDaysSinceEpoch(long) - Static method in class com.ibm.cos.v2.utils.DateUtils
Returns the number of days since epoch with respect to the given number of milliseconds since epoch.
NumericUtils - Class in com.ibm.cos.v2.utils
 

O

of(K, V) - Static method in class com.ibm.cos.v2.utils.ImmutableMap
Returns an ImmutableMap instance containing a single entry.
of(K, V, K, V) - Static method in class com.ibm.cos.v2.utils.ImmutableMap
Returns an ImmutableMap instance containing two entries.
of(K, V, K, V, K, V) - Static method in class com.ibm.cos.v2.utils.ImmutableMap
Returns an ImmutableMap instance containing three entries.
of(K, V, K, V, K, V, K, V) - Static method in class com.ibm.cos.v2.utils.ImmutableMap
Returns an ImmutableMap instance containing four entries.
of(K, V, K, V, K, V, K, V, K, V) - Static method in class com.ibm.cos.v2.utils.ImmutableMap
Returns an ImmutableMap instance containing five entries.
of(K, V) - Static method in class com.ibm.cos.v2.utils.MapUtils
 
of(K, V, K, V) - Static method in class com.ibm.cos.v2.utils.MapUtils
 
of(K, V, K, V, K, V) - Static method in class com.ibm.cos.v2.utils.MapUtils
 
of(K, V, K, V, K, V, K, V) - Static method in class com.ibm.cos.v2.utils.MapUtils
 
of(K, V, K, V, K, V, K, V, K, V) - Static method in class com.ibm.cos.v2.utils.MapUtils
 
of(K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.ibm.cos.v2.utils.MapUtils
 
of(K, V, K, V, K, V, K, V, K, V, K, V, K, V) - Static method in class com.ibm.cos.v2.utils.MapUtils
 
of(LeftT, RightT) - Static method in class com.ibm.cos.v2.utils.Pair
 
onComplete() - Method in class com.ibm.cos.v2.utils.async.AddingTrailingDataSubscriber
 
onComplete() - Method in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
 
onComplete() - Method in class com.ibm.cos.v2.utils.async.BufferingSubscriber
 
onComplete() - Method in class com.ibm.cos.v2.utils.async.ByteBufferStoringSubscriber
 
onComplete() - Method in class com.ibm.cos.v2.utils.async.DelegatingSubscriber
 
onComplete() - Method in class com.ibm.cos.v2.utils.async.EventListeningSubscriber
 
onComplete() - Method in class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
onComplete() - Method in class com.ibm.cos.v2.utils.async.SequentialSubscriber
 
onComplete() - Method in class com.ibm.cos.v2.utils.async.StoringSubscriber
 
onComplete() - Method in class com.ibm.cos.v2.utils.internal.MappingSubscriber
 
onCompleteCalledByUpstream - Variable in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
Whether the upstream subscriber has called onComplete on us.
OneCallerBlocks - Class in com.ibm.cos.v2.utils.cache
A CachedSupplier.PrefetchStrategy that will have one caller at a time block to update the value.
OneCallerBlocks() - Constructor for class com.ibm.cos.v2.utils.cache.OneCallerBlocks
 
onError(Throwable) - Method in class com.ibm.cos.v2.utils.async.AddingTrailingDataSubscriber
 
onError(Throwable) - Method in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
 
onError(Throwable) - Method in class com.ibm.cos.v2.utils.async.ByteBufferStoringSubscriber
 
onError(Throwable) - Method in class com.ibm.cos.v2.utils.async.DelegatingSubscriber
 
onError(Throwable) - Method in class com.ibm.cos.v2.utils.async.EventListeningSubscriber
 
onError(Throwable) - Method in class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
onError(Throwable) - Method in class com.ibm.cos.v2.utils.async.SequentialSubscriber
 
onError(Throwable) - Method in class com.ibm.cos.v2.utils.async.StoringSubscriber
 
onError(Throwable) - Method in class com.ibm.cos.v2.utils.internal.MappingSubscriber
 
onErrorFromUpstream - Variable in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
Whether the upstream subscriber has called onError on us.
onNext(T) - Method in class com.ibm.cos.v2.utils.async.AddingTrailingDataSubscriber
 
onNext(T) - Method in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
 
onNext(T) - Method in class com.ibm.cos.v2.utils.async.BufferingSubscriber
 
onNext(ByteBuffer) - Method in class com.ibm.cos.v2.utils.async.ByteBufferStoringSubscriber
 
onNext(T) - Method in class com.ibm.cos.v2.utils.async.EventListeningSubscriber
 
onNext(T) - Method in class com.ibm.cos.v2.utils.async.FilteringSubscriber
 
onNext(Iterable<U>) - Method in class com.ibm.cos.v2.utils.async.FlatteningSubscriber
 
onNext(ByteBuffer) - Method in class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
onNext(T) - Method in class com.ibm.cos.v2.utils.async.LimitingSubscriber
 
onNext(T) - Method in class com.ibm.cos.v2.utils.async.SequentialSubscriber
 
onNext(T) - Method in class com.ibm.cos.v2.utils.async.StoringSubscriber
 
onNext(T) - Method in class com.ibm.cos.v2.utils.internal.MappingSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.AddingTrailingDataSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.BufferingSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.ByteBufferStoringSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.DelegatingBufferingSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.DelegatingSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.EventListeningSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.FilteringSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.LimitingSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.SequentialSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.async.StoringSubscriber
 
onSubscribe(Subscription) - Method in class com.ibm.cos.v2.utils.internal.MappingSubscriber
 
OptionalUtils - Class in com.ibm.cos.v2.utils
Functions that make working with optionals easier.
OutputStreamPublisher - Class in com.ibm.cos.v2.utils.async
Adapts a Publisher to an OutputStream.
OutputStreamPublisher() - Constructor for class com.ibm.cos.v2.utils.async.OutputStreamPublisher
 

P

Pair<LeftT,RightT> - Class in com.ibm.cos.v2.utils
Simple struct of two values, possibly of different types.
paramNotBlank(T, String) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified char sequence is neither null, a length of zero (no characters), empty nor whitespace; otherwise throwing an exception with the specified message.
paramNotNull(T, String) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the specified field/param is not null; otherwise throwing an exception with a precanned message that includes the parameter name.
parseIso8601Date(String) - Static method in class com.ibm.cos.v2.utils.DateUtils
Parses the specified date string as an ISO 8601 date (yyyy-MM-dd'T'HH:mm:ss.SSSZZ) and returns the Instant object.
parseNonProxyHostsEnvironmentVariable() - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
 
parseNonProxyHostsProperty() - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Returns the Java system property for nonProxyHosts as set of Strings.
parseRfc1123Date(String) - Static method in class com.ibm.cos.v2.utils.DateUtils
Parses the specified date string as an RFC 1123 date and returns the Date object.
parseRfc822Date(String) - Static method in class com.ibm.cos.v2.utils.DateUtils
Parses the specified date string as an RFC 822 date and returns the Date object.
parseUnixTimestampInstant(String) - Static method in class com.ibm.cos.v2.utils.DateUtils
Parses the given string containing a Unix timestamp with millisecond decimal precision into an Instant object.
parseUnixTimestampMillisInstant(String) - Static method in class com.ibm.cos.v2.utils.DateUtils
Parses the given string containing a Unix timestamp in epoch millis into a Instant object.
pascalCase(String) - Static method in class com.ibm.cos.v2.utils.internal.CodegenNamingUtils
 
pascalCase(String...) - Static method in class com.ibm.cos.v2.utils.internal.CodegenNamingUtils
 
password() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxyEnvironmentVariableConfigProvider
 
password() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxySystemPropertyConfigProvider
 
password() - Method in interface com.ibm.cos.v2.utils.ProxyConfigProvider
Gets the proxy password if available.
peek() - Method in class com.ibm.cos.v2.utils.async.StoringSubscriber
Check the first event stored in this subscriber.
peek() - Method in class com.ibm.cos.v2.utils.LookaheadInputStream
 
Platform - Class in com.ibm.cos.v2.utils
 
poll() - Method in class com.ibm.cos.v2.utils.async.StoringSubscriber
Remove and return the first event stored in this subscriber.
port() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxyEnvironmentVariableConfigProvider
 
port() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxySystemPropertyConfigProvider
 
port() - Method in interface com.ibm.cos.v2.utils.ProxyConfigProvider
Gets the proxy port.
pos(byte) - Method in class com.ibm.cos.v2.utils.internal.Base16Codec
 
predicate() - Method in interface com.ibm.cos.v2.utils.ConditionalDecorator
 
predicate(Predicate<T>) - Method in class com.ibm.cos.v2.utils.internal.DefaultConditionalDecorator.Builder
 
predicate() - Method in class com.ibm.cos.v2.utils.internal.DefaultConditionalDecorator
 
prefetch(Runnable) - Method in interface com.ibm.cos.v2.utils.cache.CachedSupplier.PrefetchStrategy
Execute the provided value updater to update the cache.
prefetch(Runnable) - Method in class com.ibm.cos.v2.utils.cache.NonBlocking
 
prefetch(Runnable) - Method in class com.ibm.cos.v2.utils.cache.OneCallerBlocks
 
prefetchStrategy(CachedSupplier.PrefetchStrategy) - Method in class com.ibm.cos.v2.utils.cache.CachedSupplier.Builder
Configure the way in which data in the cache should be pre-fetched when the data's RefreshResult.prefetchTime() arrives.
prefetchTime(Instant) - Method in class com.ibm.cos.v2.utils.cache.RefreshResult.Builder
Specify the time at which a thread that calls CachedSupplier.get() should trigger a cache prefetch.
prefetchTime() - Method in class com.ibm.cos.v2.utils.cache.RefreshResult
When the configured value is getting close to stale and should be updated using the supplier's CachedSupplier.prefetchStrategy.
property() - Method in enum com.ibm.cos.v2.utils.JavaSystemSetting
 
property() - Method in enum com.ibm.cos.v2.utils.ProxyEnvironmentSetting
 
property() - Method in enum com.ibm.cos.v2.utils.ProxySystemSetting
 
property() - Method in interface com.ibm.cos.v2.utils.SystemSetting
The system property of the setting (or null if there is no property for this setting).
ProxyConfigProvider - Interface in com.ibm.cos.v2.utils
Interface for providing proxy configuration settings.
ProxyEnvironmentSetting - Enum in com.ibm.cos.v2.utils
An enumeration representing environment settings related to proxy configuration.
ProxyEnvironmentVariableConfigProvider - Class in com.ibm.cos.v2.utils.internal.proxy
An implementation of the ProxyConfigProvider interface that retrieves proxy configuration settings from environment variables.
ProxyEnvironmentVariableConfigProvider(String) - Constructor for class com.ibm.cos.v2.utils.internal.proxy.ProxyEnvironmentVariableConfigProvider
 
ProxySystemPropertyConfigProvider - Class in com.ibm.cos.v2.utils.internal.proxy
An implementation of the ProxyConfigProvider interface that retrieves proxy configuration settings from system properties.
ProxySystemPropertyConfigProvider(String) - Constructor for class com.ibm.cos.v2.utils.internal.proxy.ProxySystemPropertyConfigProvider
 
ProxySystemSetting - Enum in com.ibm.cos.v2.utils
The system properties related to http and https proxies
put(AttributeMap.Key<T>, T) - Method in class com.ibm.cos.v2.utils.AttributeMap.Builder
Add a mapping between the provided key and value.
put(K, V) - Method in class com.ibm.cos.v2.utils.ImmutableMap.Builder
Add a key-value pair into the built map.
put(K, V) - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
putAll(Map<? extends AttributeMap.Key<?>, ?>) - Method in class com.ibm.cos.v2.utils.AttributeMap.Builder
Adds all the attributes from the map provided.
putAll(AttributeMap) - Method in class com.ibm.cos.v2.utils.AttributeMap.Builder
Put all of the attributes from the provided map into this one.
putAll(Map<? extends K, ? extends V>) - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
putLazy(AttributeMap.Key<T>, AttributeMap.LazyValue<T>) - Method in class com.ibm.cos.v2.utils.AttributeMap.Builder
Add a mapping between the provided key and value provider.
putLazyIfAbsent(AttributeMap.Key<T>, AttributeMap.LazyValue<T>) - Method in class com.ibm.cos.v2.utils.AttributeMap.Builder
Equivalent to #putLazy(Key, LazyValue), but does not assign the value if there is already a non-null value assigned for the provided key.

R

read() - Method in class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
read(byte[]) - Method in class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
read(byte[], int, int) - Method in class com.ibm.cos.v2.utils.async.InputStreamSubscriber
 
read() - Method in class com.ibm.cos.v2.utils.LookaheadInputStream
 
read(byte[], int, int) - Method in class com.ibm.cos.v2.utils.LookaheadInputStream
 
ReflectionMethodInvoker<T,R> - Class in com.ibm.cos.v2.utils
This class acts as a proxy to invoke a specific method on objects of a specific class.
ReflectionMethodInvoker(Class<T>, Class<R>, String, Class<?>...) - Constructor for class com.ibm.cos.v2.utils.ReflectionMethodInvoker
Construct an instance of ReflectionMethodInvoker.
ReflectionUtils - Class in com.ibm.cos.v2.utils.internal
Utilities that assist with Java language reflection.
RefreshResult<T> - Class in com.ibm.cos.v2.utils.cache
A wrapper for the value returned by the Supplier underlying a CachedSupplier.
RefreshResult.Builder<T> - Class in com.ibm.cos.v2.utils.cache
A builder for a RefreshResult.
remove(Object) - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
repeat(String, int) - Static method in class com.ibm.cos.v2.utils.StringUtils
Returns a string whose value is the concatenation of this string repeated count times.
replace(String, String, String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Replaces a String with another String inside a larger String, for the first max values of the search String, case sensitively/insensitively based on ignoreCase value.
replaceEach(String, String[], String[]) - Static method in class com.ibm.cos.v2.utils.StringUtils
Replaces all occurrences of Strings within another String.
replaceOnce(String, String, String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Replaces a String with another String inside a larger String, once.
replacePrefixIgnoreCase(String, String, String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Replace the prefix of the string provided ignoring case considerations.
request(long) - Method in class com.ibm.cos.v2.utils.async.DelegatingSubscription
 
request(long) - Method in class com.ibm.cos.v2.utils.async.DemandIgnoringSubscription
 
request(long) - Method in class com.ibm.cos.v2.utils.internal.async.EmptySubscription
 
requireClass(String, String, String) - Static method in class com.ibm.cos.v2.utils.DependencyValidate
A helpful method that checks that some class is available on the class-path.
reset() - Method in class com.ibm.cos.v2.utils.LookaheadInputStream
 
resolveEnvironmentVariable(SystemSetting) - Static method in class com.ibm.cos.v2.utils.internal.SystemSettingUtils
Attempt to load this setting from the environment variables.
resolveEnvironmentVariable(String) - Static method in class com.ibm.cos.v2.utils.internal.SystemSettingUtils
Attempt to load a key from the environment variables.
resolveNonDefaultSetting(SystemSetting) - Static method in class com.ibm.cos.v2.utils.internal.SystemSettingUtils
Resolve the value of this system setting, loading it from the System by checking: The system properties. The environment variables.
resolveSetting(SystemSetting) - Static method in class com.ibm.cos.v2.utils.internal.SystemSettingUtils
Resolve the value of this system setting, loading it from the System by checking: The system properties. The environment variables. The default value.
right(R) - Static method in class com.ibm.cos.v2.utils.Either
Create a new Either with the right type.
right() - Method in class com.ibm.cos.v2.utils.Either
 
right() - Method in class com.ibm.cos.v2.utils.Pair
 
run() - Method in interface com.ibm.cos.v2.utils.FunctionalUtils.UnsafeRunnable
 
runAndLogError(Logger, String, FunctionalUtils.UnsafeRunnable) - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
Runs a given FunctionalUtils.UnsafeRunnable and logs an error without throwing.
runtimeError() - Method in class com.ibm.cos.v2.utils.async.StoringSubscriber.Event
The error stored in this ERROR type.
runWithInstanceThreadName(Runnable) - Method in class com.ibm.cos.v2.utils.cache.NonBlocking
 

S

safeCompare(Comparable<T>, T) - Static method in class com.ibm.cos.v2.utils.ComparableUtils
Does a safe comparison of two Comparable objects accounting for nulls
safeConsumer(FunctionalUtils.UnsafeConsumer<I>) - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
A wrapper around a Consumer that throws a checked exception.
safeFunction(FunctionalUtils.UnsafeFunction<T, R>) - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
Takes a functional interface that throws an exception and returns a Function that deals with that exception by wrapping in a runtime exception.
safeRunnable(FunctionalUtils.UnsafeRunnable) - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
A wrapper around a Runnable that throws a checked exception.
safeStringToBoolean(SystemSetting, String) - Static method in class com.ibm.cos.v2.utils.internal.SystemSettingUtils
Convert a string to boolean safely (as opposed to the less strict Boolean.parseBoolean(String)).
safeStringToBoolean(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Convert a string to boolean safely (as opposed to the less strict Boolean.parseBoolean(String)).
safeSupplier(FunctionalUtils.UnsafeSupplier<T>) - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
A wrapper around a BiConsumer that throws a checked exception.
saturatedCast(long) - Static method in class com.ibm.cos.v2.utils.NumericUtils
Returns the int nearest in value to value.
schedule(Runnable, long, TimeUnit) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
schedule(Callable<V>, long, TimeUnit) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
scheduleAtFixedRate(Runnable, long, long, TimeUnit) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
scheduledExecutorService() - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
ScheduledExecutorUtils - Class in com.ibm.cos.v2.utils
Utilities that make it easier to create, use and destroy ScheduledExecutors.
ScheduledExecutorUtils.UnmanagedScheduledExecutorService - Class in com.ibm.cos.v2.utils
Wrapper around ScheduledExecutorService to prevent it from being closed.
scheduleWithFixedDelay(Runnable, long, long, TimeUnit) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
SdkAutoCloseable - Interface in com.ibm.cos.v2.utils
An implementation of AutoCloseable that does not throw any checked exceptions.
SdkBuilder<B extends SdkBuilder<B,T>,T> - Interface in com.ibm.cos.v2.utils.builder
A mutable object that can be used to create an immutable object of type T.
SdkHttpUtils - Class in com.ibm.cos.v2.utils.http
A set of utilities that assist with HTTP message-related interactions.
send(T) - Method in class com.ibm.cos.v2.utils.async.SimplePublisher
Send a message using this publisher.
SequentialSubscriber<T> - Class in com.ibm.cos.v2.utils.async
A simple implementation of Subscriber that requests data one at a time.
SequentialSubscriber(Consumer<T>, CompletableFuture<Void>) - Constructor for class com.ibm.cos.v2.utils.async.SequentialSubscriber
 
shutdown() - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
shutdownNow() - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
SimplePublisher<T> - Class in com.ibm.cos.v2.utils.async
A Publisher to which callers can SimplePublisher.send(Object) messages, simplifying the process of implementing a publisher.
SimplePublisher() - Constructor for class com.ibm.cos.v2.utils.async.SimplePublisher
 
size() - Method in class com.ibm.cos.v2.utils.cache.lru.LruCache
 
size() - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
skip(long) - Method in class com.ibm.cos.v2.utils.LookaheadInputStream
 
splitOnWordBoundaries(String) - Static method in class com.ibm.cos.v2.utils.internal.CodegenNamingUtils
 
splitQueryString(String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
 
staleTime(Instant) - Method in class com.ibm.cos.v2.utils.cache.RefreshResult.Builder
Specify the time at which the value in this cache is stale, and all calls to CachedSupplier.get() should block to try to update the value.
staleTime() - Method in class com.ibm.cos.v2.utils.cache.RefreshResult
When the configured value is stale and should no longer be used.
staleValueBehavior(CachedSupplier.StaleValueBehavior) - Method in class com.ibm.cos.v2.utils.cache.CachedSupplier.Builder
Configure the way the cache should behave when a stale value is retrieved or when retrieving a value fails while the cache is stale.
standardPort(String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Retrieve the standard port for the provided protocol.
startsWithIgnoreCase(String, String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Tests if this string starts with the specified prefix ignoring case considerations.
StoringSubscriber<T> - Class in com.ibm.cos.v2.utils.async
An implementation of Subscriber that stores the events it receives for retrieval.
StoringSubscriber(int) - Constructor for class com.ibm.cos.v2.utils.async.StoringSubscriber
Create a subscriber that stores up to maxElements events for retrieval.
StoringSubscriber.Event<T> - Class in com.ibm.cos.v2.utils.async
An event stored for later retrieval by this subscriber.
StoringSubscriber.EventType - Enum in com.ibm.cos.v2.utils.async
 
StringInputStream - Class in com.ibm.cos.v2.utils
Simple wrapper for ByteArrayInputStream that will automatically encode the string as UTF-8 data, and still allows access to the original string.
StringInputStream(String) - Constructor for class com.ibm.cos.v2.utils.StringInputStream
 
StringInputStream(String, Charset) - Constructor for class com.ibm.cos.v2.utils.StringInputStream
 
StringUtils - Class in com.ibm.cos.v2.utils
Operations on String that are null safe.
submit(Callable<T>) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
submit(Runnable, T) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
submit(Runnable) - Method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils.UnmanagedScheduledExecutorService
 
subscribe(Subscriber<? super ByteBuffer>) - Method in class com.ibm.cos.v2.utils.async.InputStreamConsumingPublisher
 
subscribe(Subscriber<? super T>) - Method in class com.ibm.cos.v2.utils.async.IterablePublisher
 
subscribe(Subscriber<? super ByteBuffer>) - Method in class com.ibm.cos.v2.utils.async.OutputStreamPublisher
 
subscribe(Subscriber<? super T>) - Method in class com.ibm.cos.v2.utils.async.SimplePublisher
A method called by the downstream subscriber in order to subscribe to the publisher.
subscriber - Variable in class com.ibm.cos.v2.utils.async.DelegatingSubscriber
 
substring(String, int) - Static method in class com.ibm.cos.v2.utils.StringUtils
Gets a substring from the specified String avoiding exceptions.
substring(String, int, int) - Static method in class com.ibm.cos.v2.utils.StringUtils
Gets a substring from the specified String avoiding exceptions.
SystemSetting - Interface in com.ibm.cos.v2.utils
An interface implemented by enums in other packages in order to define the system settings the want loaded.
SystemSettingUtils - Class in com.ibm.cos.v2.utils.internal
A set of static utility methods for shared code in SystemSetting.
SystemSettingUtilsTestBackdoor - Class in com.ibm.cos.v2.utils.internal
This is a backdoor to add overrides to the results of querying SystemSettings.

T

terminalCallMadeDownstream - Variable in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
Whether we have called onComplete or onNext on the downstream subscriber.
ThreadFactoryBuilder - Class in com.ibm.cos.v2.utils
A builder for creating a thread factory.
ThreadFactoryBuilder() - Constructor for class com.ibm.cos.v2.utils.ThreadFactoryBuilder
 
threadNamePrefix(String) - Method in class com.ibm.cos.v2.utils.ThreadFactoryBuilder
The name prefix for threads created by this thread factory.
toBase64(byte[]) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Converts byte data to a Base64-encoded string.
toBase64Bytes(byte[]) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Converts byte data to a Base64-encoded string.
toBuilder() - Method in class com.ibm.cos.v2.utils.AttributeMap
 
toBuilder() - Method in interface com.ibm.cos.v2.utils.builder.ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.
toBuilder() - Method in class com.ibm.cos.v2.utils.cache.RefreshResult
 
toByteArray(InputStream) - Static method in class com.ibm.cos.v2.utils.IoUtils
Reads and returns the rest of the given input stream as a byte array.
toBytesDirect(String) - Static method in class com.ibm.cos.v2.utils.internal.CodecUtils
Returns a byte array representing the given string, truncating each character into a byte directly.
ToCopyableBuilder<B extends CopyableBuilder<B,T>,T extends ToCopyableBuilder<B,T>> - Interface in com.ibm.cos.v2.utils.builder
Implementors of this interface provide a way to get from an instance of T to a CopyableBuilder.
toFunction(Supplier<O>) - Static method in class com.ibm.cos.v2.utils.FunctionalUtils
 
toHex(byte[]) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Converts byte data to a Hex-encoded string in lower case.
toMap() - Static method in class com.ibm.cos.v2.utils.CollectionUtils
Collect a stream of Map.Entry to a Map with the same key/value types
toNonDirectBuffer(ByteBuffer) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Returns a copy of the given DirectByteBuffer from its current position as a non-direct HeapByteBuffer
toStream(ByteBuffer) - Static method in class com.ibm.cos.v2.utils.BinaryUtils
Wraps a ByteBuffer in an InputStream.
toString() - Method in class com.ibm.cos.v2.utils.AttributeMap.Key
 
toString() - Method in class com.ibm.cos.v2.utils.AttributeMap
 
toString() - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
toString() - Method in class com.ibm.cos.v2.utils.Lazy
 
toString() - Method in class com.ibm.cos.v2.utils.Pair
 
ToString - Class in com.ibm.cos.v2.utils
A class to standardize implementations of Object.toString() across the SDK.
toStringDirect(byte[]) - Static method in class com.ibm.cos.v2.utils.internal.CodecUtils
Returns a string representing the given byte array, treating each byte as a single octet character.
toUtf8String(InputStream) - Static method in class com.ibm.cos.v2.utils.IoUtils
Reads and returns the rest of the given input stream as a string.
trace(Supplier<String>) - Method in class com.ibm.cos.v2.utils.Logger
Checks if trace is enabled and if so logs the supplied message
trace(Supplier<String>, Throwable) - Method in class com.ibm.cos.v2.utils.Logger
Checks if trace is enabled and if so logs the supplied message and exception
transferTo(ByteBuffer) - Method in class com.ibm.cos.v2.utils.async.ByteBufferStoringSubscriber
Transfer the data stored by this subscriber into the provided byte buffer.
transform() - Method in interface com.ibm.cos.v2.utils.ConditionalDecorator
 
transform(UnaryOperator<T>) - Method in class com.ibm.cos.v2.utils.internal.DefaultConditionalDecorator.Builder
 
transform() - Method in class com.ibm.cos.v2.utils.internal.DefaultConditionalDecorator
 
trim(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Removes control characters (char <= 32) from both ends of this String, handling null by returning null.
trimToEmpty(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Removes control characters (char <= 32) from both ends of this String returning an empty String ("") if the String is empty ("") after the trim or if it is null.
trimToNull(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Removes control characters (char <= 32) from both ends of this String returning null if the String is empty ("") after the trim or if it is null.
tryRunBackgroundTask(Runnable) - Method in class com.ibm.cos.v2.utils.cache.NonBlocking
 
tryRunBackgroundTask(Runnable, Runnable) - Method in class com.ibm.cos.v2.utils.cache.NonBlocking
 
type() - Method in class com.ibm.cos.v2.utils.async.StoringSubscriber.Event
Retrieve the StoringSubscriber.EventType of this event.

U

uncapitalize(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Uncapitalizes a String, changing the first character to lower case as per Character.toLowerCase(int).
uniqueIndex(Iterable<V>, Function<? super V, K>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
For a collection of values of type V that can all be converted to type K, create a map that indexes all of the values by K.
uniqueIndex(Class<V>, Function<? super V, K>) - Static method in class com.ibm.cos.v2.utils.internal.EnumUtils
Create a map that indexes all enum values by a given index function.
unmanagedExecutor(Executor) - Static method in class com.ibm.cos.v2.utils.ExecutorUtils
Wrap an executor in a type that cannot be closed, or shut down.
unmanagedScheduledExecutor(ScheduledExecutorService) - Static method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils
Wrap a scheduled executor in a type that cannot be closed, or shut down.
unmodifiableMapOfLists(Map<T, List<U>>) - Static method in class com.ibm.cos.v2.utils.CollectionUtils
 
UnsafeValueType(Class<?>) - Constructor for class com.ibm.cos.v2.utils.AttributeMap.Key.UnsafeValueType
 
unwrapUnmanagedScheduledExecutor(ScheduledExecutorService) - Static method in class com.ibm.cos.v2.utils.ScheduledExecutorUtils
Unwrap a scheduled executor.
updateTask(ScheduledFuture<?>) - Method in class com.ibm.cos.v2.utils.cache.NonBlocking
 
upperCase(String) - Static method in class com.ibm.cos.v2.utils.StringUtils
Converts a String to upper case as per String.toUpperCase().
upstreamDemand - Variable in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
The amount of unfulfilled demand open against the upstream subscriber.
upstreamSubscription - Variable in class com.ibm.cos.v2.utils.async.BaseSubscriberAdapter
The subscription to the upstream subscriber.
uriParams(URI) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Extracts query parameters from the given URI
urlDecode(String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Decode the string according to RFC 3986: encoding for URI paths, query strings, etc.
urlEncode(String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Encode a string according to RFC 3986: encoding for URI paths, query strings, etc.
urlEncodeIgnoreSlashes(String) - Static method in class com.ibm.cos.v2.utils.http.SdkHttpUtils
Encode a string according to RFC 3986, but ignore "/" characters.
userHomeDirectory() - Static method in class com.ibm.cos.v2.utils.UserHomeDirectoryUtils
 
UserHomeDirectoryUtils - Class in com.ibm.cos.v2.utils
Load the home directory that should be used for the stored file.
userName() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxyEnvironmentVariableConfigProvider
 
userName() - Method in class com.ibm.cos.v2.utils.internal.proxy.ProxySystemPropertyConfigProvider
 
userName() - Method in interface com.ibm.cos.v2.utils.ProxyConfigProvider
Gets the proxy username if available.

V

Validate - Class in com.ibm.cos.v2.utils
This class assists in validating arguments.
validateHostnameCompliant(String, String, String) - Static method in class com.ibm.cos.v2.utils.HostnameValidator
 
validateHostnameCompliant(String, String, String, Pattern) - Static method in class com.ibm.cos.v2.utils.HostnameValidator
 
validState(T, Predicate<T>, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate the stateful predicate is true for the given object and return the object; otherwise throw an exception with the specified message.
validState(boolean, String, Object...) - Static method in class com.ibm.cos.v2.utils.Validate
Validate that the stateful condition is true; otherwise throwing an exception with the specified message.
value() - Method in class com.ibm.cos.v2.utils.async.StoringSubscriber.Event
The value stored in this VALUE type.
value() - Method in class com.ibm.cos.v2.utils.cache.RefreshResult
The value resulting from the refresh.
valueOf(String) - Static method in enum com.ibm.cos.v2.utils.async.ByteBufferStoringSubscriber.TransferResult
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.ibm.cos.v2.utils.async.StoringSubscriber.EventType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.ibm.cos.v2.utils.cache.CachedSupplier.StaleValueBehavior
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.ibm.cos.v2.utils.JavaSystemSetting
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.ibm.cos.v2.utils.ProxyEnvironmentSetting
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.ibm.cos.v2.utils.ProxySystemSetting
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.ibm.cos.v2.utils.async.ByteBufferStoringSubscriber.TransferResult
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.ibm.cos.v2.utils.async.StoringSubscriber.EventType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.ibm.cos.v2.utils.cache.CachedSupplier.StaleValueBehavior
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class com.ibm.cos.v2.utils.ImmutableMap
 
values() - Static method in enum com.ibm.cos.v2.utils.JavaSystemSetting
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.ibm.cos.v2.utils.ProxyEnvironmentSetting
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.ibm.cos.v2.utils.ProxySystemSetting
Returns an array containing the constants of this enum type, in the order they are declared.

W

warn(Supplier<String>) - Method in class com.ibm.cos.v2.utils.Logger
Checks if warn is enabled and if so logs the supplied message
warn(Supplier<String>, Throwable) - Method in class com.ibm.cos.v2.utils.Logger
Checks if warn is enabled and if so logs the supplied message and exception
withValue(T) - Static method in class com.ibm.cos.v2.utils.Lazy
 
write(int) - Method in class com.ibm.cos.v2.utils.async.OutputStreamPublisher
 
write(byte[]) - Method in class com.ibm.cos.v2.utils.async.OutputStreamPublisher
 
write(byte[], int, int) - Method in class com.ibm.cos.v2.utils.async.OutputStreamPublisher
 
A B C D E F G H I J K L M N O P R S T U V W 
Skip navigation links

Copyright © 2026. All rights reserved.