A C D E F G J L M N O P R S T W
All Classes All Packages
All Classes All Packages
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 aMap
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 fromloggingConfigUpdates
if present there. - await(long) - Method in interface pl.morgwai.base.concurrent.Awaitable
-
A timed blocking operation}, such as
Thread.join(long)
,Object.wait(long)
,ExecutorService.awaitTermination(long, TimeUnit)
etc. - 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 additionalTimeUnit
param. - Awaitable - Interface in pl.morgwai.base.concurrent
-
An object performing
timed blocking operation
, such asThread.join(long)
,Object.wait(long)
,ExecutorService.awaitTermination(long, TimeUnit)
etc. - Awaitable.AwaitInterruptedException - Exception in pl.morgwai.base.concurrent
-
An
InterruptedException
that contains results ofAwaitable operations
passed to one ofawaitMultipe(...) functions
that was interrupted. - Awaitable.Entry<T> - Class in pl.morgwai.base.concurrent
- 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 byoperationEntries
. - 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 aCallable
instead of aSupplier
. - 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.use
Awaitable.newEntry(Object, Awaitable)
instead. - 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: seeJulConfig.overrideLogLevelsWithSystemProperties(String...)
andJulConfig()
. - 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 addlog sequence id
andthread 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 aProperties
argument instead of anInputStream
.
M
- manualReset() - Method in class pl.morgwai.base.logging.JulManualResetLogManager
-
Calls
super.reset()
.
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 directlyaccess 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
- ofJoin(Thread) - Static method in interface pl.morgwai.base.concurrent.Awaitable
-
Creates
Awaitable.WithUnit
ofjoining a thread
. - ofTermination(ExecutorService) - Static method in interface pl.morgwai.base.concurrent.Awaitable
- 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
Logger
s andHandler
s whoseLevel
s will be overridden byJulConfig.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
P
- pl.morgwai.base.concurrent - package pl.morgwai.base.concurrent
-
Multithreading utilities.
- pl.morgwai.base.logging - package pl.morgwai.base.logging
-
java.util.logging
utilities. - 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 callssuper
.
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
Throwable
s.
T
- toAwaitableWithUnit() - Method in interface pl.morgwai.base.concurrent.Awaitable
-
Adapts this
Awaitable
toAwaitable.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 callssuper
. - write(int) - Method in class pl.morgwai.base.util.NoCopyByteArrayOutputStream
-
Ensures
NoCopyByteArrayOutputStream.close()
hasn't been called yet and callssuper
. - write(MessageT) - Method in interface pl.morgwai.base.concurrent.OrderedConcurrentOutputBuffer.OutputStream
All Classes All Packages