Miscellaneous domain-agnostic utilities.
Interface Summary Interface Description Accumulator<T>Abstraction of an accumulator capable of collecting items and at some point in time triggers processing of all previously accumulated items. BandwidthRepresentation of bandwidth. PredictableExecutor.PickyCallable<T>
PredictableExecutor.PickyTaskAbstraction to give a task a way to express it's preference to run on certain thread. RichComparable<T>Extends useful methods for comparison to
TriConsumer<U,V,W>A consumer that accepts three arguments.
Class Summary Class Description AbstractAccumulator<T>Base implementation of an item accumulator. BlockingAwareFuture<T>A
CompletableFuturethat tracks whether the future or one of its descendants has been blocked on a
BlockingBooleanMutable boolean that allows threads to wait for a specified value. BoundedThreadPoolImplementation of ThreadPoolExecutor that bounds the work queue. ByteArraySizeHashPrinterHelper to print byte length and hashCode. ByteOperatorProvide a set of byte operations. ClosedOpenRangeRepresent a closed-open range. CountDownCompleter<T>A synchronization utility that defers invocation of a
consumercallback until a set number of actions tracked by a
CounterCounting mechanism capable of tracking occurrences and rates. DefaultHashMap<K,V>HashMap that returns a default value for unmapped keys. ExtendedSet<E>A Set providing additional get, insertOrReplace and conditionalRemove methods. FilePathValidatorUtilities for validation of Zip files. FrequencyClass representing frequency. GeoLocationGeo location specified in terms of longitude and latitude. GroupedThreadFactoryThread factory for creating threads that belong to the specified thread group. GuavaCollectorsImplementations of
Collectorthat implement various useful reduction operations, such as accumulating elements into Guava collections.
HexDump Deprecated.in 1.11.0 HexString Identifier<T>Abstract identifier backed by another value, e.g. ImmutableByteSequenceImmutable sequence of bytes, assumed to represent a value in
KryoNamespacePool of Kryo instances, with classes pre-registered. KryoNamespace.BuilderKryoNamespace builder. Match<T>Utility class for checking matching values. OrderedExecutorExecutor that executes tasks in order on a shared thread pool. PositionalParameterStringFormatterAllows slf4j style formatting of parameters into a string. PredictableExecutor(Somewhat) predictable ExecutorService. PredictableExecutor.PickyFutureTask<T>A
RetryingFunction<U,V>Function that retries execution on failure. SafeRecurringTaskWrapper for a recurring task which catches all exceptions to prevent task being suppressed in a ScheduledExecutorService. SharedExecutorsUtility for managing a set of shared execution resources, such as a timer, single thread executor and thread pool executor for use by various parts of the platform or by applications. SharedScheduledExecutorsUtility for managing a set of shared execution resources, such as a single thread scheduled executor and thread pool scheduled executor for use by various parts of the platform or by applications. SharedScheduledExecutorServiceA new scheduled executor service that does not eat exception. SlidingWindowCounterMaintains a sliding window of value counts. SpectrumTelecom optical wavelength bands: O, E, S, C, L and U bands. StringFilterFilters content on a given object with String representation. TimerHashed-wheel timer singleton. ToolsMiscellaneous utility methods. UnmodifiableDeque<E>Unmodifiable view of the specified Deque. XmlStringPrettyPrinted XML String.
Enum Summary Enum Description DataRateUnitData rate unit. StringFilter.StrategyDefines the filtering strategy. Tools.LogLevelLog level for the customized logger.
Exception Summary Exception Description BacktraceRuntimeException object intended to used to log execution back trace. ImmutableByteSequence.ByteSequenceTrimExceptionSignals that a byte sequence cannot be trimmed. ItemNotFoundExceptionRepresents condition where an item is not found or not available. RetriesExceededExceptionException that indicates the retry threshold has been exceeded.