A C D E F G J L M N O P R S T W 
All Classes All Packages

A

addBucket() - Method in class pl.morgwai.base.concurrent.OrderedConcurrentOutputBuffer
Adds a new empty bucket at the end of this buffer.
addOrReplaceLoggingConfigProperties(Map<String, String>) - Static method in class pl.morgwai.base.logging.JulConfig
Convenient version of JulConfig.addOrReplaceLoggingConfigProperties(Properties) that takes a Map as an argument.
addOrReplaceLoggingConfigProperties(Properties) - Static method in class pl.morgwai.base.logging.JulConfig
Adds to logging config properties those properties from loggingConfigUpdates that were not present before, replaces values of those already present with corresponding ones from loggingConfigUpdates if present there.
await(long) - Method in interface pl.morgwai.base.concurrent.Awaitable
await(long) - Method in interface pl.morgwai.base.concurrent.Awaitable.WithUnit
await(long, TimeUnit) - Method in interface pl.morgwai.base.concurrent.Awaitable.WithUnit
A version of Awaitable.WithUnit.await(long) method with additional TimeUnit param.
Awaitable - Interface in pl.morgwai.base.concurrent
Awaitable.AwaitInterruptedException - Exception in pl.morgwai.base.concurrent
An InterruptedException that contains results of Awaitable operations passed to one of awaitMultipe(...) functions that was interrupted.
Awaitable.Entry<T> - Class in pl.morgwai.base.concurrent
Maps object to an Awaitable operation that one of awaitMultiple(...) functions will perform.
Awaitable.WithUnit - Interface in pl.morgwai.base.concurrent
A more precise and flexible Awaitable.
AwaitInterruptedException(List<T>, List<T>, Iterator<Awaitable.Entry<T>>) - Constructor for exception pl.morgwai.base.concurrent.Awaitable.AwaitInterruptedException
 
awaitMultiple(long, boolean, Function<? super T, Awaitable>, List<T>) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, boolean, Awaitable.Entry<T>...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, boolean, Awaitable.WithUnit...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, boolean, Awaitable...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, TimeUnit, boolean, Function<? super T, Awaitable>, List<T>) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, TimeUnit, boolean, Iterator<Awaitable.Entry<T>>) - Static method in interface pl.morgwai.base.concurrent.Awaitable
Awaits for multiple timed blocking operations (Awaitable) specified by operationEntries.
awaitMultiple(long, TimeUnit, boolean, Awaitable.Entry<T>...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, TimeUnit, boolean, Awaitable.WithUnit...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, TimeUnit, boolean, Awaitable...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, TimeUnit, Function<? super T, Awaitable>, List<T>) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, TimeUnit, Awaitable.Entry<T>...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, TimeUnit, Awaitable.WithUnit...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, TimeUnit, Awaitable...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, Function<? super T, Awaitable>, List<T>) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, Awaitable.Entry<T>...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, Awaitable.WithUnit...) - Static method in interface pl.morgwai.base.concurrent.Awaitable
awaitMultiple(long, Awaitable...) - Static method in interface pl.morgwai.base.concurrent.Awaitable

C

close() - Method in interface pl.morgwai.base.concurrent.OrderedConcurrentOutputBuffer.OutputStream
 
close() - Method in class pl.morgwai.base.util.NoCopyByteArrayOutputStream
Marks this stream as closed.
completableFutureSupplyAsync(Callable<T>, Executor) - Static method in interface pl.morgwai.base.concurrent.ConcurrentUtils
Convenient version of CompletableFuture.supplyAsync(Supplier, Executor) that takes a Callable instead of a Supplier.
ConcurrentUtils - Interface in pl.morgwai.base.concurrent
Various concurrent utility functions.

D

DEFAULT_FORMAT - Static variable in class pl.morgwai.base.logging.JulFormatter
"%7$5d %8$3d %4$7s %1$tF %1$tT.%1$tL %3$s %5$s %6$s%n".
"{sequenceId} {threadId} {level} {timestamp} {loggerName} {message} {thrown}".

E

entry(T, Awaitable) - Static method in interface pl.morgwai.base.concurrent.Awaitable
Deprecated, for removal: This API element is subject to removal in a future version.
Entry(T, Awaitable) - Constructor for class pl.morgwai.base.concurrent.Awaitable.Entry
 

F

format(LogRecord) - Method in class pl.morgwai.base.logging.JulFormatter
Formats the given record.
FORMAT_PROPERTY - Static variable in class pl.morgwai.base.logging.JulFormatter
Name of the logging or system property containing the main format for each record.

G

getBuffer() - Method in class pl.morgwai.base.util.NoCopyByteArrayOutputStream
Returns the whole underlying output buffer without copying it.
getFailed() - Method in exception pl.morgwai.base.concurrent.Awaitable.AwaitInterruptedException
 
getInterrupted() - Method in exception pl.morgwai.base.concurrent.Awaitable.AwaitInterruptedException
 
getObject() - Method in class pl.morgwai.base.concurrent.Awaitable.Entry
 
getOperation() - Method in class pl.morgwai.base.concurrent.Awaitable.Entry
 
getUnexecuted() - Method in exception pl.morgwai.base.concurrent.Awaitable.AwaitInterruptedException
 

J

JUL_CONFIG_CLASS_PROPERTY - Static variable in class pl.morgwai.base.logging.JulConfig
"java.util.logging.config.class"
JUL_LOG_MANAGER_PROPERTY - Static variable in class pl.morgwai.base.logging.JulManualResetLogManager
"java.util.logging.manager"
JUL_SIMPLE_FORMAT_PROPERTY_NAME - Static variable in class pl.morgwai.base.logging.JulFormatter
"java.util.logging.SimpleFormatter.format"
JulConfig - Class in pl.morgwai.base.logging
Utilities to manipulate java.util.logging config, among others allows to override log levels with values from system properties at startup in existing java apps without rebuilding: see JulConfig.overrideLogLevelsWithSystemProperties(String...) and JulConfig().
JulConfig() - Constructor for class pl.morgwai.base.logging.JulConfig
Reads logging config normally and then calls JulConfig.overrideLogLevelsWithSystemProperties(String...).
JulFormatter - Class in pl.morgwai.base.logging
A text log formatter similar to SimpleFormatter that additionally allows to format stack trace elements and to add log sequence id and thread id to log entries.
JulFormatter() - Constructor for class pl.morgwai.base.logging.JulFormatter
Creates a new formatter configured using either system properties or logging properties.
JulFormatter(String, String) - Constructor for class pl.morgwai.base.logging.JulFormatter
Creates a new formatter configured using supplied params.
JulManualResetLogManager - Class in pl.morgwai.base.logging
A LogManager that does not get reset automatically at JVM shutdown.
JulManualResetLogManager() - Constructor for class pl.morgwai.base.logging.JulManualResetLogManager
 

L

LEVEL_SUFFIX - Static variable in class pl.morgwai.base.logging.JulConfig
".level"
logManagerUpdateConfiguration(LogManager, Properties, int, Function<String, BiFunction<String, String, String>>) - Static method in class pl.morgwai.base.logging.JulConfig
Convenient version of LogManager.updateConfiguration(InputStream, Function) that takes a Properties argument instead of an InputStream.

M

manualReset() - Method in class pl.morgwai.base.logging.JulManualResetLogManager

N

newEntry(T, Awaitable) - Static method in interface pl.morgwai.base.concurrent.Awaitable
 
NoCopyByteArrayOutputStream - Class in pl.morgwai.base.util
A ByteArrayOutputStream that allows to directly access its underlying buffer after the stream was closed.
NoCopyByteArrayOutputStream() - Constructor for class pl.morgwai.base.util.NoCopyByteArrayOutputStream
 
NoCopyByteArrayOutputStream(int) - Constructor for class pl.morgwai.base.util.NoCopyByteArrayOutputStream
 

O

ofEnforcedTermination(ExecutorService) - Static method in interface pl.morgwai.base.concurrent.Awaitable
Creates Awaitable.WithUnit of termination of executor.
ofJoin(Thread) - Static method in interface pl.morgwai.base.concurrent.Awaitable
ofTermination(ExecutorService) - Static method in interface pl.morgwai.base.concurrent.Awaitable
Creates Awaitable.WithUnit of termination of executor.
OrderedConcurrentOutputBuffer<MessageT> - Class in pl.morgwai.base.concurrent
Buffers messages until all of those that should be written before to the output are available, so that they all will be written in the correct order.
OrderedConcurrentOutputBuffer(OrderedConcurrentOutputBuffer.OutputStream<MessageT>) - Constructor for class pl.morgwai.base.concurrent.OrderedConcurrentOutputBuffer
 
OrderedConcurrentOutputBuffer.OutputStream<MessageT> - Interface in pl.morgwai.base.concurrent
 
OVERRIDE_LEVEL_PROPERTY - Static variable in class pl.morgwai.base.logging.JulConfig
Name of the system property that can contain comma separated, fully qualified names of Loggers and Handlers whose Levels will be overridden by JulConfig.overrideLogLevelsWithSystemProperties(String...).
overrideLogLevels(String...) - Static method in class pl.morgwai.base.logging.JulConfig
Deprecated, for removal: This API element is subject to removal in a future version.
overrideLogLevelsWithSystemProperties(String...) - Static method in class pl.morgwai.base.logging.JulConfig
Overrides Levels of java.util.logging Loggers and Handlers with values obtained from system properties.

P

pl.morgwai.base.concurrent - package pl.morgwai.base.concurrent
Multithreading utilities.
pl.morgwai.base.logging - package pl.morgwai.base.logging
pl.morgwai.base.util - package pl.morgwai.base.util
Various utilities.

R

readConfiguration(InputStream) - Method in class pl.morgwai.base.logging.JulManualResetLogManager
 
reset() - Method in class pl.morgwai.base.logging.JulManualResetLogManager
Has no effect.
reset() - Method in class pl.morgwai.base.util.NoCopyByteArrayOutputStream
Ensures NoCopyByteArrayOutputStream.close() hasn't been called yet and calls super.

S

signalNoMoreBuckets() - Method in class pl.morgwai.base.concurrent.OrderedConcurrentOutputBuffer
Indicates that no more new buckets will be added.
STACKFRAME_FORMAT_PROPERTY - Static variable in class pl.morgwai.base.logging.JulFormatter
Name of the logging or system property containing the format for stack frames of logged Throwables.

T

toAwaitableWithUnit() - Method in interface pl.morgwai.base.concurrent.Awaitable
Adapts this Awaitable to Awaitable.WithUnit.
toAwaitableWithUnit() - Method in interface pl.morgwai.base.concurrent.Awaitable.WithUnit
Returns this.

W

write(byte[], int, int) - Method in class pl.morgwai.base.util.NoCopyByteArrayOutputStream
Ensures NoCopyByteArrayOutputStream.close() hasn't been called yet and calls super.
write(int) - Method in class pl.morgwai.base.util.NoCopyByteArrayOutputStream
Ensures NoCopyByteArrayOutputStream.close() hasn't been called yet and calls super.
write(MessageT) - Method in interface pl.morgwai.base.concurrent.OrderedConcurrentOutputBuffer.OutputStream
 
A C D E F G J L M N O P R S T W 
All Classes All Packages