| Package | Description |
|---|---|
| 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.io |
New java Input/Output model adding more flexibility and asynchronous operations.
|
| net.lecousin.framework.io.buffering |
IO with bufferization.
|
| 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.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.serialization |
XML serialization and deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
ThreadingDebugHelper.unblocked(Async<?> sp)
Indicate the given JoinPoint has been unblocked.
|
| Modifier and Type | Class and Description |
|---|---|
class |
JoinPoint<TError extends Exception>
A JoinPoint allows to wait for several synchronization points or events, instead of a single one.
|
| Modifier and Type | Method and Description |
|---|---|
Async<NoException> |
ReadWriteLockPoint.startReadAsync()
To call when a thread wants to enter read mode.
|
Async<NoException> |
ReadWriteLockPoint.startReadAsync(boolean returnNullIfReady)
To call when a thread wants to enter read mode.
|
Async<NoException> |
ReadWriteLockPoint.startWriteAsync()
To call when a thread wants to enter write mode.
|
Async<NoException> |
ReadWriteLockPoint.startWriteAsync(boolean returnNullIfReady)
To call when a thread wants to enter write mode.
|
| Modifier and Type | Method and Description |
|---|---|
default void |
IAsync.onDone(Async<TError> sp)
Transfer the result of this asynchronous unit to the given one:
unblock it on success, call error method on error, or call cancel method on cancellation.
|
void |
AsyncSupplier.onDone(Async<TError> sp) |
default <TError2 extends Exception> |
IAsync.onDone(Async<TError2> sp,
Function<TError,TError2> errorConverter)
Transfer the result of this asynchronous unit to the given one:
unblock it on success, call error method on error, or call cancel method on cancellation.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends IO.Writable.Seekable & IO.Readable.Seekable> |
IOUtil.copy(T io,
long src,
long dst,
long len)
Copy bytes inside a Seekable IO.
|
Async<IOException> |
IOWritePool.onDone()
Must be called once all write operations have been done, and only one time.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
SubIO.closeResources(Async<IOException> ondone) |
protected void |
PositionKnownWrapper.closeResources(Async<IOException> ondone) |
protected void |
LinkedIO.closeResources(Async<IOException> ondone) |
protected void |
IOFromOutputStream.closeResources(Async<IOException> ondone) |
protected void |
IOFromInputStream.closeResources(Async<IOException> ondone) |
protected void |
FragmentedSubIO.closeResources(Async<IOException> ondone) |
protected void |
FileIO.closeResources(Async<IOException> ondone) |
| Modifier and Type | Method and Description |
|---|---|
Async<IOException> |
BufferedReverseIOReading.canStartReading() |
Async<IOException> |
PreBufferedReadable.getDataReadySynchronization()
Return the next synchronization point that will be unblocked once data is ready to be read.
|
Async<IOException> |
MemoryIO.writeAsyncTo(IO.Writable io)
Asynchronously write the content of this MemoryIO into the given Writable.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
TwoBuffersIO.closeResources(Async<IOException> ondone) |
protected void |
SingleBufferReadable.closeResources(Async<IOException> ondone) |
protected void |
SimpleBufferedWritable.closeResources(Async<IOException> ondone) |
protected void |
SimpleBufferedReadable.closeResources(Async<IOException> ondone) |
protected void |
ReadableToSeekable.closeResources(Async<IOException> ondone) |
protected void |
PreBufferedReadable.closeResources(Async<IOException> ondone) |
protected void |
MemoryIO.closeResources(Async<IOException> ondone) |
protected void |
IOInMemoryOrFile.closeResources(Async<IOException> ondone) |
protected void |
ByteBuffersIO.closeResources(Async<IOException> ondone) |
protected void |
ByteArrayIO.closeResources(Async<IOException> ondone) |
protected void |
BufferedReverseIOReading.closeResources(Async<IOException> ondone) |
protected void |
BufferedIO.closeResources(Async<IOException> ondone) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
OutputToInputBuffers.closeResources(Async<IOException> ondone) |
protected void |
OutputToInput.closeResources(Async<IOException> ondone) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractSerializer.serializeAttribute(List<SerializationClass.Attribute> attributes,
int attributeIndex,
SerializationContext.ObjectContext context,
String containerPath,
List<SerializationRule> rules,
Async<SerializationException> result) |
protected void |
AbstractSerializer.serializeCollectionElement(SerializationContext.CollectionContext context,
Iterator<?> it,
int elementIndex,
String colPath,
List<SerializationRule> rules,
Async<SerializationException> result) |
protected void |
AbstractSerializationSpecWriter.specifyTypeAttribute(SerializationContext.ObjectContext context,
List<SerializationClass.Attribute> attributes,
int index,
List<SerializationRule> rules,
Async<SerializationException> sp) |
| Modifier and Type | Method and Description |
|---|---|
Async<IOException> |
BufferedReadableCharacterStream.canStartReading() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
WritableCharacterStream.closeResources(Async<IOException> ondone) |
protected void |
TextLineStream.closeResources(Async<IOException> ondone) |
protected void |
ProgressiveBufferedReadableCharStream.closeResources(Async<IOException> ondone) |
protected void |
BufferedWritableCharacterStream.closeResources(Async<IOException> ondone) |
protected void |
BufferedReadableCharacterStreamLocation.closeResources(Async<IOException> ondone) |
protected void |
BufferedReadableCharacterStream.closeResources(Async<IOException> ondone) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
NonBufferedReadableIOAsBuffered.closeResources(Async<IOException> ondone) |
protected void |
EmptyReadable.closeResources(Async<IOException> ondone) |
protected void |
BroadcastIO.closeResources(Async<IOException> ondone) |
| Modifier and Type | Field and Description |
|---|---|
protected Async<Exception> |
WorkProgressImpl.synch |
| Modifier and Type | Method and Description |
|---|---|
Async<IOException> |
UnprotectedStringBuffer.encode(Charset charset,
IO.Writable output,
byte priority)
Encode this string with the given charset and write the result on the given writable IO.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
UnprotectedStringBuffer.AbstractCS.closeResources(Async<IOException> ondone) |
protected abstract void |
ConcurrentCloseable.closeResources(Async<TError> ondone) |
| Modifier and Type | Field and Description |
|---|---|
protected Async<Exception> |
XMLStreamEventsAsync.Next.sp |
| Modifier and Type | Method and Description |
|---|---|
Async<Exception> |
XMLStreamReaderAsync.next() |
Async<Exception> |
XMLStreamEventsRecorder.Async.next() |
abstract Async<Exception> |
XMLStreamEventsAsync.next()
Move forward to the next event.
|
| Constructor and Description |
|---|
Next(Async<Exception> sp) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
XMLSerializer.serializeCollectionAttributeElement(SerializationContext.CollectionContext context,
Iterator<?> it,
int elementIndex,
String colPath,
List<SerializationRule> rules,
Async<SerializationException> result) |
Copyright © 2019. All rights reserved.