| Package | Description |
|---|---|
| net.lecousin.framework.application |
Main classes to initialize this library: LCCore and Application.
|
| net.lecousin.framework.application.launcher |
Application launcher.
|
| net.lecousin.framework.application.libraries |
Library loading and management.
|
| net.lecousin.framework.application.libraries.classloader |
Class loaders when libraries are loaded dynamically.
|
| net.lecousin.framework.application.libraries.classpath |
Default implementation of LibrariesManager, simply using the classpath of the JVM.
|
| net.lecousin.framework.concurrent |
Multi-threading framework.
|
| net.lecousin.framework.concurrent.async |
Classes implementing synchronization points such as asynchronous result, join point...
|
| net.lecousin.framework.concurrent.tasks |
Implementations of tasks.
|
| net.lecousin.framework.concurrent.tasks.drives |
Tasks on files or directories.
|
| net.lecousin.framework.concurrent.util |
Multi-threading utilities.
|
| net.lecousin.framework.io |
New java Input/Output model adding more flexibility and asynchronous operations.
|
| net.lecousin.framework.io.buffering |
IO with bufferization.
|
| net.lecousin.framework.io.encoding |
Utility classes for encoding.
|
| net.lecousin.framework.io.out2in |
Implementations of IO.OutputToInput.
|
| net.lecousin.framework.io.serialization |
Serialization and deserialization framework.
|
| net.lecousin.framework.io.text |
IO on characters and text.
|
| net.lecousin.framework.io.util |
Utility classes for IO.
|
| net.lecousin.framework.locale |
Localization.
|
| net.lecousin.framework.log |
Logging.
|
| net.lecousin.framework.log.appenders |
Logging appenders.
|
| net.lecousin.framework.plugins |
Plugins mechanism.
|
| net.lecousin.framework.progress |
Progression of asynchronous or background works.
|
| net.lecousin.framework.util |
Utility classes.
|
| net.lecousin.framework.xml |
XML Parsing and generation.
|
| net.lecousin.framework.xml.dom |
Simple (partial) DOM implementation.
|
| net.lecousin.framework.xml.serialization |
XML serialization and deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<Exception> |
SplashScreen.getSynch() |
IAsync<Exception> |
Application.loadPreferences()
Load preferences.
|
IAsync<Exception> |
ApplicationBootstrap.RunInMain.run() |
IAsync<Exception> |
ApplicationBootstrap.start(Application app,
WorkProgress progress)
Start the application, and return a synchronization point that will be unblocked when the application
is asked to shutdown.
|
static IAsync<ApplicationBootstrapException> |
Application.start(Artifact artifact,
boolean debugMode)
Method to call at the beginning of the application, typically in the main method.
|
static IAsync<ApplicationBootstrapException> |
Application.start(Artifact artifact,
String[] args,
boolean debugMode)
Method to call at the beginning of the application, typically in the main method.
|
static IAsync<ApplicationBootstrapException> |
Application.start(Artifact artifact,
String[] commandLineArguments,
Map<String,String> properties,
boolean debugMode,
ThreadFactory threadFactory,
LibrariesManager librariesManager,
Appender defaultLogAppender)
Method to call at the beginning of the application, typically in the main method.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<LibraryManagementException> |
DynamicLibrariesManager.onLibrariesLoaded() |
| Modifier and Type | Method and Description |
|---|---|
IAsync<LibraryManagementException> |
LibrariesManager.onLibrariesLoaded()
Return a synchronization point which is blocked until this libraries manager has been initialized
and has loaded all required libraries.
|
| Modifier and Type | Method and Description |
|---|---|
static IAsync<NoException> |
AbstractClassLoader.getClassLoadingSP(String name)
Get the synchronized object for loading the given class.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<LibraryManagementException> |
DefaultLibrariesManager.onLibrariesLoaded() |
| Modifier and Type | Class and Description |
|---|---|
class |
Task.Output
Synchronization point holding the result or error of this task.
|
| Modifier and Type | Method and Description |
|---|---|
void |
BlockedThreadHandler.blocked(IAsync<?> synchPoint,
long timeout)
Singal that the current thread is blocked by the given synchronization point.
|
Task<T,TError> |
Task.ensureUnblocked(IAsync<?>... sp)
Ensure that when this task will be done, successfully or not, the given synchronization point
are unblocked.
|
static void |
ThreadingDebugHelper.registerJoin(JoinPoint<?> jp,
IAsync<?> sp)
Indicates that a JoinPoint is waiting for a synchronization point.
|
void |
Task.startOn(boolean evenOnErrorOrCancel,
IAsync<?>... list)
Start this task once all the given synchronization points are unblocked.
|
void |
Task.startOn(IAsync<? extends Exception> sp,
boolean evenOnErrorOrCancel)
Start this task once the given synchronization point is unblocked.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractLock<TError extends Exception>
Base class for locks.
|
class |
Async<TError extends Exception>
Simplest implementation of a synchronization point.
|
class |
AsyncSupplier<T,TError extends Exception>
Same as a SynchronizationPoint, except that it contains a result.
|
class |
JoinPoint<TError extends Exception>
A JoinPoint allows to wait for several synchronization points or events, instead of a single one.
|
class |
LockPoint<TError extends Exception>
A LockPoint is similar to a mutual exclusion, but can be locked and unlocked by any thread.
For example, a first thread can lock it, and a second thread (after some processing is done) can unlock it. A LockPoint can also be seen as a SynchronizationPoint but reusable. When a thread calls the lock method: if the lock point is not yet locked it becomes locked and the calling thread can continue working, and must call the method unlock once done. if the lock point is already locked, the calling thread is paused, waiting for the lock point to be unlocked. If several threads are waiting for the lock point to be unlocked: Only one is resume and obtain the lock, the others are still paused The order the threads are resumed is undetermined, meaning it is not necessarily in the order they called the lock method |
class |
MutualExclusion<TError extends Exception>
A MutualExclusion must be unlocked by the same thread that locked it.
|
class |
WaitingDataQueueSynchronizationPoint<DataType,TError extends Exception>
Like a SynchronizationPoint, but with a queue of waiting data.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JoinPoint.addToJoin(IAsync<?> sp,
Function<Exception,TError> errorConverter)
Register the given synchronization point as a waited event for this JoinPoint.
The number of waited events is incremented, and a listener is added to the synchronization point and do the following when the synchronization point is unblocked: Cancel this JoinPoint if the synchronization point is cancelled Unblock this JoinPoint with an error if the synchronization point has been unblocked with an error Call the joined method if the synchronization point has been unblocked with success |
void |
JoinPoint.addToJoin(IAsync<? extends TError> sp)
Register the given synchronization point as a waited event for this JoinPoint.
The number of waited events is incremented, and a listener is added to the synchronization point and do the following when the synchronization point is unblocked: Cancel this JoinPoint if the synchronization point is cancelled Unblock this JoinPoint with an error if the synchronization point has been unblocked with an error Call the joined method if the synchronization point has been unblocked with success |
void |
JoinPoint.addToJoinDoNotCancel(IAsync<? extends TError> sp)
Similar to addToJoin, but in case the synchronization point is cancelled,
it is simply consider as done, and do not cancel this JoinPoint.
|
void |
JoinPoint.addToJoinNoException(IAsync<?> sp)
Register the given synchronization point as a waited event for this JoinPoint.
The number of waited events is incremented, and a listener is added to the synchronization point. |
default boolean |
IAsync.forwardIfNotSuccessful(IAsync<TError> sp)
If this asynchronous unit is not successful, forward the result to the given one (this object MUST be done).
|
static JoinPoint<Exception> |
JoinPoint.from(IAsync<?>... synchPoints)
Shortcut method to create a JoinPoint waiting for the given synchronization points, the JoinPoint is started by this method.
|
static <T extends Exception> |
JoinPoint.fromSimilarError(IAsync<T>... synchPoints)
Shortcut method to create a JoinPoint waiting for the given synchronization points, the JoinPoint is started by this method.
If some given synchronization points are null, they are just skipped.
|
static void |
JoinPoint.joinOnDoneThenDo(Runnable listener,
IAsync<?>... synchPoints)
Shortcut method to create a JoinPoint waiting for the given synchronization points, start the JoinPoint,
and add the given listener to be called when the JoinPoint is unblocked.
|
static void |
JoinPoint.joinThenDo(Runnable listener,
IAsync<?>... synchPoints)
Shortcut method to create a JoinPoint waiting for the given synchronization points, start the JoinPoint,
and add the given listener to be called when the JoinPoint is unblocked.
|
void |
AsyncSupplier.onDone(Consumer<T> onready,
IAsync<TError> onErrorAndCancel)
Call onready on success, or forward error/cancellation to onErrorAndCancel.
|
<TError2 extends Exception> |
AsyncSupplier.onDone(Consumer<T> onready,
IAsync<TError2> onErrorAndCancel,
Function<TError,TError2> errorConverter)
Call onready on success, or forward error/cancellation to onErrorAndCancel.
|
default void |
IAsync.onDone(Runnable onReady,
IAsync<TError> onErrorOrCancel)
Call listener when unblocked, or forward error/cancellation to onErrorOrCancel.
|
void |
AsyncSupplier.onDone(Runnable onready,
IAsync<TError> onErrorAndCancel) |
default <TError2 extends Exception> |
IAsync.onDone(Runnable onReady,
IAsync<TError2> onErrorOrCancel,
Function<TError,TError2> errorConverter)
Call listener when unblocked, or forward error/cancellation to onErrorOrCancel.
|
boolean |
AsyncSupplier.thenDoOrStart(Consumer<T> consumer,
String taskDescription,
byte taskPriority,
IAsync<TError> onErrorOrCancel)
Call consumer immediately (in current thread) if done, or start a CPU task on done.
|
default boolean |
IAsync.thenDoOrStart(Runnable runnable,
String taskDescription,
byte taskPriority,
IAsync<TError> onErrorOrCancel)
Call runnable immediately (in current thread) if done, or start a CPU task on done.
|
default <TError2 extends Exception> |
IAsync.thenDoOrStart(Runnable runnable,
String taskDescription,
byte taskPriority,
IAsync<TError2> onErrorOrCancel,
Function<TError,TError2> errorConverter)
Call runnable immediately (in current thread) if done, or start a CPU task on done.
|
default void |
IAsync.thenStart(String description,
byte priority,
Runnable task,
IAsync<TError> onErrorOrCancel)
Start the given task when this synchronization point is successfully unblocked, else the error or cancel
event are forwarded to the given synchronization point.
|
default void |
IAsync.thenStart(Task<?,? extends Exception> task,
IAsync<TError> onErrorOrCancel)
Start the given task when this asynchronous unit is successfully unblocked, else the error or cancel
event are forwarded to the given asynchronous unit.
|
default <TError2 extends Exception> |
IAsync.thenStart(Task<?,? extends Exception> task,
IAsync<TError2> onErrorOrCancel,
Function<TError,TError2> errorConverter)
Start the given task when this synchronization point is successfully unblocked, else the error or cancel
event are forwarded to the given synchronization point.
|
| Modifier and Type | Method and Description |
|---|---|
static JoinPoint<Exception> |
JoinPoint.from(Collection<? extends IAsync<?>> synchPoints)
Shortcut method to create a JoinPoint waiting for the given synchronization points, the JoinPoint is started by this method.
|
| Constructor and Description |
|---|
Async(IAsync<TError2> toConvert,
Function<TError2,TError> errorConverter)
Create an asynchronous unit from the given one, converting the error using the given converter.
|
| Modifier and Type | Method and Description |
|---|---|
static IAsync<IOException> |
SavePropertiesFileTask.savePropertiesFile(Properties properties,
File file,
Charset charset,
byte priority)
Save properties to a file.
|
static IAsync<IOException> |
SavePropertiesFileTask.savePropertiesFile(Properties properties,
ICharacterStream.Writable.Buffered output,
byte priority,
boolean closeStreamAtEnd)
Save properties to a writable character stream.
|
static IAsync<IOException> |
SavePropertiesFileTask.savePropertiesFile(Properties properties,
IO.Writable output,
Charset charset,
byte priority,
boolean closeIOAtEnd)
Save properties to a Writable IO.
|
| Modifier and Type | Method and Description |
|---|---|
static IAsync<IOException> |
RenameFileTask.rename(File source,
File destination,
byte priority)
Rename a file.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<OutputErrorType> |
LimitAsyncOperations.flush()
Same as getLastPendingOperation but never return null (return an unblocked synchronization point instead).
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<IOException> |
FileIO.canStart()
Can start reading or writing.
|
protected IAsync<IOException> |
SubIO.canStartReading() |
IAsync<IOException> |
SubIO.Readable.canStartReading() |
IAsync<IOException> |
SubIO.Readable.Seekable.canStartReading() |
IAsync<IOException> |
SubIO.Readable.Seekable.Buffered.canStartReading() |
IAsync<IOException> |
SubIO.ReadWrite.canStartReading() |
protected IAsync<IOException> |
PositionKnownWrapper.canStartReading() |
IAsync<IOException> |
PositionKnownWrapper.Readable.canStartReading() |
IAsync<IOException> |
PositionKnownWrapper.Readable.Buffered.canStartReading() |
protected IAsync<IOException> |
LinkedIO.canStartReading() |
IAsync<IOException> |
LinkedIO.Readable.canStartReading() |
IAsync<IOException> |
IOFromInputStream.canStartReading() |
IAsync<IOException> |
IO.Readable.canStartReading()
Return a synchronization point that is unblocked when data is ready to be read.
|
IAsync<IOException> |
IO.ReadableByteStream.canStartReading()
Return a synchronization point that is unblocked when data is ready to be read.
|
IAsync<IOException> |
FragmentedSubIO.Readable.canStartReading() |
IAsync<IOException> |
FileIO.ReadOnly.canStartReading() |
IAsync<IOException> |
FileIO.ReadWrite.canStartReading() |
protected IAsync<IOException> |
SubIO.canStartWriting() |
IAsync<IOException> |
SubIO.Writable.canStartWriting() |
IAsync<IOException> |
SubIO.Writable.Seekable.canStartWriting() |
IAsync<IOException> |
SubIO.ReadWrite.canStartWriting() |
protected IAsync<IOException> |
LinkedIO.canStartWriting() |
IAsync<IOException> |
LinkedIO.ReadWrite.canStartWriting() |
IAsync<IOException> |
IOFromOutputStream.canStartWriting() |
IAsync<IOException> |
IO.Writable.canStartWriting()
Return a synchronization point that is unblocked when data is ready to be written.
|
IAsync<IOException> |
IO.WritableByteStream.canStartWriting()
Return a synchronization point that is unblocked when data is ready to be written.
|
protected IAsync<IOException> |
FragmentedSubIO.canStartWriting() |
IAsync<IOException> |
FragmentedSubIO.ReadWrite.canStartWriting() |
IAsync<IOException> |
FileIO.WriteOnly.canStartWriting() |
IAsync<IOException> |
FileIO.ReadWrite.canStartWriting() |
static IAsync<IOException> |
IOUtil.closeAsync(Closeable toClose)
Implement an asynchronous close using a task calling the synchronous close.
|
protected IAsync<IOException> |
SubIO.closeUnderlyingResources() |
protected IAsync<IOException> |
PositionKnownWrapper.closeUnderlyingResources() |
protected IAsync<IOException> |
LinkedIO.closeUnderlyingResources() |
protected IAsync<IOException> |
IOFromOutputStream.closeUnderlyingResources() |
protected IAsync<IOException> |
IOFromInputStream.closeUnderlyingResources() |
protected IAsync<IOException> |
FragmentedSubIO.closeUnderlyingResources() |
protected IAsync<IOException> |
FileIO.closeUnderlyingResources() |
IAsync<IOException> |
IO.Writable.Buffered.flush()
Force to write buffered data to the underlying IO.
|
IAsync<IOException> |
IO.Resizable.setSizeAsync(long newSize)
Asynchronous resize.
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncSupplier<Long,IOException> |
IOUtil.copy(File src,
File dst,
byte priority,
long knownSize,
WorkProgress progress,
long work,
IAsync<?> startOn)
Copy a file.
|
static <T> Consumer<IOException> |
IOUtil.errorConsumer(IAsync<IOException> async,
Consumer<Pair<T,IOException>> ondone)
Create a consumer that call forward the error to the given sync and call onDone.
|
static <T,T2> void |
IOUtil.listenOnDone(AsyncSupplier<T,IOException> toListen,
Consumer<T> onReady,
IAsync<IOException> onErrorOrCancel,
Consumer<Pair<T2,IOException>> ondone)
Listen to
toListen, then calls onReady if it succeed. |
static <T,T2> void |
IOUtil.listenOnDone(AsyncSupplier<T,IOException> toListen,
Task<?,?> onReady,
IAsync<IOException> onErrorOrCancel,
Consumer<Pair<T2,IOException>> ondone)
Listen to
toListen, then launch onReady if it succeed. |
static <T> void |
IOUtil.listenOnDone(IAsync<IOException> toListen,
Runnable onReady,
IAsync<IOException> onErrorOrCancel,
Consumer<Pair<T,IOException>> ondone)
Listen to
toListen, then calls onReady if it succeed. |
static <T> void |
IOUtil.listenOnDone(IAsync<IOException> toListen,
Runnable onReady,
IAsync<IOException> onErrorOrCancel,
Consumer<Pair<T,IOException>> ondone)
Listen to
toListen, then calls onReady if it succeed. |
protected abstract void |
LinkedIO.nextIOAsync(Runnable ondone,
IAsync<IOException> onerror,
Consumer rp) |
protected void |
LinkedIO.Readable.nextIOAsync(Runnable ondone,
IAsync<IOException> onerror,
Consumer rp) |
protected void |
LinkedIO.Readable.Seekable.nextIOAsync(Runnable ondone,
IAsync<IOException> onerror,
Consumer rp) |
protected void |
LinkedIO.nextIOAsyncSeekable(Runnable ondone,
IAsync<IOException> onerror,
Consumer rp) |
static <TResult,TError extends Exception> |
IOUtil.notSuccess(IAsync<TError> sp,
AsyncSupplier<TResult,TError> result,
Consumer<Pair<TResult,TError>> ondone)
Shortcut to transfer error or cancellation.
|
protected abstract void |
LinkedIO.previousIOAsync(Runnable ondone,
IAsync<IOException> onerror,
Consumer rp) |
protected void |
LinkedIO.Readable.previousIOAsync(Runnable ondone,
IAsync<IOException> onerror,
Consumer rp) |
protected void |
LinkedIO.Readable.Seekable.previousIOAsync(Runnable ondone,
IAsync<IOException> onerror,
Consumer rp) |
protected void |
LinkedIO.previousIOAsyncSeekable(Runnable ondone,
IAsync<IOException> onerror,
Consumer rp) |
| Constructor and Description |
|---|
RecursiveAsyncSupplierListener(IOUtil.RecursiveAsyncSupplierListener.OnSuccess<T> onSuccess,
IAsync<IOException> onErrorOrCancel,
Consumer<Pair<T2,IOException>> ondone)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<IOException> |
Base64Decoder.decode(ByteBuffer buffer)
Start a new Task to decode the given buffer.
|
IAsync<IOException> |
Base64Decoder.decode(CharBuffer buffer)
Start a new Task to decode the given buffer.
|
static IAsync<IOException> |
Base64.encodeAsync(IO.Readable.Buffered io,
ICharacterStream.WriterAsync writer)
Encode the Readable IO into the Writer.
|
static IAsync<IOException> |
Base64.encodeAsync(IO.Readable.Buffered io,
IO.WriterAsync writer)
Encode the Readable IO into the Writer.
|
static IAsync<IOException> |
Base64.encodeAsync(IO.Readable io,
ICharacterStream.WriterAsync writer)
Encode the Readable IO into the Writer.
|
static IAsync<IOException> |
Base64.encodeAsync(IO.Readable io,
IO.WriterAsync writer)
Encode the Readable IO into the Writer.
|
IAsync<IOException> |
Base64Decoder.flush()
Decode any pending bytes, then return a synchronization point that will be unblocked once
the last writing operation is done.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<IOException> |
OutputToInputBuffers.canStartReading() |
IAsync<IOException> |
OutputToInput.canStartReading() |
IAsync<IOException> |
OutputToInputBuffers.canStartWriting() |
IAsync<IOException> |
OutputToInput.canStartWriting() |
protected IAsync<IOException> |
OutputToInputBuffers.closeUnderlyingResources() |
protected IAsync<IOException> |
OutputToInput.closeUnderlyingResources() |
| Modifier and Type | Method and Description |
|---|---|
IAsync<IOException> |
Decoder.canDecode()
When the decode method returns -2, this method can be used to know when new data is available to be decoded.
|
IAsync<IOException> |
ProgressiveBufferedReadableCharStream.canStartReading() |
IAsync<IOException> |
ICharacterStream.Readable.Buffered.canStartReading()
Return a synchronization point which is unblocked once some characters have been buffered.
|
IAsync<IOException> |
BufferedReadableCharacterStreamLocation.canStartReading() |
IAsync<IOException> |
Decoder.closeAsync() |
protected IAsync<IOException> |
WritableCharacterStream.closeUnderlyingResources() |
protected IAsync<IOException> |
TextLineStream.closeUnderlyingResources() |
protected IAsync<IOException> |
ProgressiveBufferedReadableCharStream.closeUnderlyingResources() |
protected IAsync<IOException> |
BufferedWritableCharacterStream.closeUnderlyingResources() |
protected IAsync<IOException> |
BufferedReadableCharacterStreamLocation.closeUnderlyingResources() |
protected IAsync<IOException> |
BufferedReadableCharacterStream.closeUnderlyingResources() |
IAsync<IOException> |
ICharacterStream.Writable.Buffered.flush()
Flush any buffered character.
|
IAsync<IOException> |
CharacterStreamWritePool.flush()
Returns the synchronization point of the latest write operation.
|
IAsync<IOException> |
BufferedWritableCharacterStream.flush() |
IAsync<IOException> |
CharacterStreamWritePool.write(char c)
Write a single character.
|
IAsync<IOException> |
CharacterStreamWritePool.write(char[] chars)
Write the given characters.
|
IAsync<IOException> |
CharacterStreamWritePool.write(char[] chars,
int offset,
int length)
Write the given characters.
|
IAsync<IOException> |
CharacterStreamWritePool.write(CharBuffer chars)
Write the given characters.
|
IAsync<IOException> |
CharacterStreamWritePool.write(CharBuffer[] chars)
Write the given characters.
|
IAsync<IOException> |
CharacterStreamWritePool.write(CharSequence s)
Write the given string.
|
IAsync<IOException> |
CharacterStreamWritePool.write(IString s)
Write the given string.
|
IAsync<IOException> |
CharacterStreamWritePool.write(String s)
Write the given string.
|
IAsync<IOException> |
ICharacterStream.Writable.Buffered.writeAsync(char c)
Write one character.
|
IAsync<IOException> |
BufferedWritableCharacterStream.writeAsync(char c) |
default IAsync<IOException> |
ICharacterStream.WriterAsync.writeAsync(char[] c)
Write characters.
|
IAsync<IOException> |
WritableCharacterStream.writeAsync(char[] c,
int offset,
int length) |
IAsync<IOException> |
ICharacterStream.WriterAsync.writeAsync(char[] c,
int offset,
int length)
Write characters.
|
IAsync<IOException> |
BufferedWritableCharacterStream.writeAsync(char[] c,
int off,
int len) |
default IAsync<IOException> |
ICharacterStream.WriterAsync.writeAsync(String s)
Write characters of the given string.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<IOException> |
ReadableSeekableToDeterminedSize.canStartReading() |
IAsync<IOException> |
NonBufferedReadableIOAsBuffered.canStartReading() |
IAsync<IOException> |
EmptyReadable.canStartReading() |
IAsync<IOException> |
BroadcastIO.canStartWriting() |
IAsync<IOException> |
ReadableSeekableToDeterminedSize.closeAsync() |
protected IAsync<IOException> |
NonBufferedReadableIOAsBuffered.closeUnderlyingResources() |
protected IAsync<IOException> |
EmptyReadable.closeUnderlyingResources() |
protected IAsync<IOException> |
BroadcastIO.closeUnderlyingResources() |
| Modifier and Type | Method and Description |
|---|---|
<T extends ClassLoader & ApplicationClassLoader> |
LocaleExtensionPoint.loadPluginConfiguration(IO.Readable io,
T classLoader,
IAsync<?>... startOn) |
IAsync<IOException> |
LocalizedProperties.registerNamespace(String namespace,
String path,
ClassLoader classLoader)
Register the path on which localized properties can be found for a namespace.
|
IAsync<IOException> |
LocalizedProperties.registerNamespaceFrom(Class<?> cl,
String namespace,
String subPath)
Register the path on which localized properties can be found for a namespace.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends ClassLoader & ApplicationClassLoader> |
LocaleExtensionPoint.loadPluginConfiguration(IO.Readable io,
T classLoader,
IAsync<?>... startOn) |
| Modifier and Type | Method and Description |
|---|---|
IAsync<Exception> |
LoggerFactory.flush()
Return a synchronization point that will be unblocked as soon as all pending logs have been written.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<?> |
RollingFileAppender.flush() |
IAsync<Exception> |
MultipleAppender.flush() |
IAsync<Exception> |
ConsoleAppender.flush() |
IAsync<?> |
Appender.flush()
Ask to flush any pending log that this appender is still holding.
|
| Modifier and Type | Method and Description |
|---|---|
default <T extends ClassLoader & ApplicationClassLoader> |
CustomExtensionPoint.loadPluginConfiguration(IO.Readable io,
T libraryClassLoader,
IAsync<?>... startOn)
Load configuration.
|
| Modifier and Type | Method and Description |
|---|---|
default <T extends ClassLoader & ApplicationClassLoader> |
CustomExtensionPoint.loadPluginConfiguration(IO.Readable io,
T libraryClassLoader,
IAsync<?>... startOn)
Load configuration.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<Exception> |
WorkProgressImpl.getSynch() |
IAsync<Exception> |
WorkProgress.getSynch()
Return a synchronization point that will be unblocked by one of the method done, error or cancel.
|
IAsync<Exception> |
FakeWorkProgress.getSynch() |
| Modifier and Type | Method and Description |
|---|---|
static void |
WorkProgress.linkTo(WorkProgress progress,
IAsync<?> sp)
Link this WorkProgress with the given synchronization point: once the synchronization point is unblocked,
one of the done, error or cancel method is called.
|
| Modifier and Type | Method and Description |
|---|---|
protected <TE extends Exception,T extends IAsync<TE>> |
ConcurrentCloseable.operation(T op) |
| Modifier and Type | Method and Description |
|---|---|
IAsync<IOException> |
UnprotectedStringBuffer.CS.canStartReading() |
IAsync<TError> |
ConcurrentCloseable.closeAsync() |
IAsync<TError> |
AsyncCloseable.closeAsync()
Close asynchronously.
|
protected IAsync<IOException> |
UnprotectedStringBuffer.AbstractCS.closeUnderlyingResources() |
protected abstract IAsync<TError> |
ConcurrentCloseable.closeUnderlyingResources() |
IAsync<IOException> |
UnprotectedStringBuffer.WCS.flush() |
IAsync<IOException> |
DirectoryWalker.start(byte priority,
WorkProgress progress,
long work)
Start the directory analysis.
|
IAsync<IOException> |
UnprotectedStringBuffer.WCS.writeAsync(char c) |
IAsync<IOException> |
UnprotectedStringBuffer.WCS.writeAsync(char[] c,
int offset,
int length) |
| Modifier and Type | Method and Description |
|---|---|
default void |
AsyncCloseable.closeAfter(IAsync<?> sp)
Close asynchronously this closeable once the given synchronization point is done.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<IOException> |
XMLWriter.addAttribute(CharSequence name,
CharSequence value)
Add an attribute to the current element.
|
IAsync<IOException> |
XMLWriter.addCData(CharSequence data)
Add a CDATA section inside the current element.
|
IAsync<IOException> |
XMLWriter.addComment(CharSequence comment)
Add a comment inside the current element.
|
IAsync<IOException> |
XMLWriter.addText(CharSequence text)
Add text inside the current element.
|
IAsync<IOException> |
XMLWriter.closeElement()
Close the current element.
|
IAsync<Exception> |
XMLStreamEventsAsync.closeElement()
Go the the END_ELEMENT event corresponding to the current START_ELEMENT (must be called with a current event to START_ELEMENT).
|
IAsync<Exception> |
XMLStreamEventsAsync.closeElement(XMLStreamEvents.ElementContext ctx)
Move forward until the closing tag of the given element is found.
|
IAsync<IOException> |
XMLWriter.end()
End the document, close any open element, and flush the output stream.
|
IAsync<IOException> |
XMLWriter.endOfAttributes()
Signal the end of attributes, so the opening tag can be closed and the content can start.
|
protected IAsync<IOException> |
XMLWriter.endOfAttributes(net.lecousin.framework.xml.XMLWriter.Context ctx) |
IAsync<Exception> |
XMLStreamEventsAsync.nextStartElement()
Shortcut to move forward to the next START_ELEMENT.
|
IAsync<IOException> |
XMLWriter.openElement(String namespaceURI,
String localName,
Map<String,String> namespaces)
Open a new element.
|
IAsync<Exception> |
XMLStreamEventsAsync.searchElement(String elementName)
Move forward until an element with the given name is found (whatever its depth).
|
IAsync<Exception> |
XMLStreamReaderAsync.start() |
IAsync<Exception> |
XMLStreamEventsRecorder.Async.start() |
abstract IAsync<Exception> |
XMLStreamEventsAsync.start()
Start reading the XML to provide the first event.
|
IAsync<IOException> |
XMLWriter.start(String rootNamespaceURI,
String rootLocalName,
Map<String,String> namespaces)
Start the document with the XML processing instruction if needed, and opening the root element.
|
IAsync<Exception> |
XMLStreamReaderAsync.startRootElement()
Shortcut to move forward to the first START_ELEMENT event, skipping the header or comments.
|
IAsync<IOException> |
XMLWriter.write(Element element)
Write the given DOM element.
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
XMLStreamEventsAsync.check(IAsync<Exception> op,
IAsync<Exception> result) |
protected boolean |
XMLStreamEventsAsync.check(IAsync<Exception> op,
IAsync<Exception> result) |
| Modifier and Type | Method and Description |
|---|---|
IAsync<Exception> |
XMLElement.parseContent(XMLStreamEventsAsync stream)
Parse the content of this element.
|
Copyright © 2019. All rights reserved.