Package com.linecorp.armeria.common.util
@NonNullByDefault
package com.linecorp.armeria.common.util
Generic utility classes.
-
ClassDescriptionA skeletal
Listenableimplementation.A configuration option.Creates a new option instance.A set of configuration options and their respective values.A holder of a value of anAbstractOption.AbstractUnwrappable<T extends Unwrappable>SkeletalUnwrappableimplementation.An object that may hold resources until it is closed.Provides support for implementingAsyncCloseableorListenableAsyncCloseable.AsyncLoader<T>A loader which atomically loads, caches and updates value.A builder for creating a newAsyncLoader.Provides an executor interface which is used for potentially long-running tasks which may block I/O threads.A builder that is useful for creating aScheduledExecutorService.Provides the common actions that are useful when handling aCompletionStage.Represents an exception that is a composite of one or more other exceptions.AnInetSocketAddressthat refers to a Unix domain socket path.An immutable object that stores the count of events.A counter that counts events as success or failure.ACompletableFuturethat warns the user if they call a method that blocks the event loop.Provides methods that are useful for creating anEventLoopGroup.Provides methods that are useful for handling exceptions.Utility methods related with function composition.A utility class which provides factory methods in order to easily create aPredicateof anInetAddress.Listenable<T>An interface that accepts item change listeners.A variant ofAsyncCloseablewhich allows a user to check whether the object is closed or to get notified when closed.LruMap<T,U> LRU (Least Recently Used) cacheMap.Operating system.A holder of releasable resourceReleasableHolder.AnAutoCloseablewhoseSafeCloseable.close()method does not throw an exception.Sampler<T>Sampler is responsible for deciding if a particular trace should be "sampled", i.e. whether the overhead of tracing will occur and/or if a trace will be reported to the collection tier.Supplies a cached value which can be useful for the below case.A utility class for adding a task with anAutoCloseableon shutdown.StartStopSupport<T,U, V, L> Provides asynchronous start-stop life cycle support.Provides utilities for accessing the information about the current system and process.A utility class to format things as aStringwith ease.Provides a builder forThreadFactory.Builds a newThreadFactory.A time source; returns a time value representing the number of nanoseconds elapsed since some fixed but arbitrary point in time.The timeout mode.Tls engine types.Native transport types.ACompletableFuturewhich prevents the caller from completing it.Provides a way to unwrap an object in decorator pattern, similar to down-casting in an inheritance pattern.Retrieves the version information of available Armeria artifacts.