| Package | Description |
|---|---|
| net.lecousin.framework.concurrent |
Multi-threading framework.
|
| net.lecousin.framework.concurrent.synch |
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(SynchronizationPoint<?> 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 |
|---|---|
default void |
ISynchronizationPoint.listenInline(SynchronizationPoint<TError> sp)
Transfer the result of this blocking point to the given synchronization point:
unblock it on success, call error method on error, or call cancel method on cancellation.
|
void |
AsyncWork.listenInline(SynchronizationPoint<TError> sp) |
default void |
ISynchronizationPoint.listenInlineSP(SynchronizationPoint<Exception> sp)
Same as listenInline but does not restrict to a synchronization point with the same exception type as parameter.
|
default void |
ISynchronizationPoint.synchWithNoError(SynchronizationPoint<?> sp)
Unblock the given synchronization point whatever the result is successful, has error or is cancelled.
|
| 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.
|
SynchronizationPoint<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.Readable.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
PositionKnownWrapper.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
LinkedIO.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
IOFromOutputStream.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
IOFromInputStream.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
FragmentedSubIO.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
FileIO.closeResources(SynchronizationPoint<Exception> ondone) |
| Modifier and Type | Method and Description |
|---|---|
SynchronizationPoint<IOException> |
BufferedReverseIOReading.canStartReading() |
SynchronizationPoint<IOException> |
PreBufferedReadable.getDataReadySynchronization()
Return the next synchronization point that will be unblocked once data is ready to be read.
|
SynchronizationPoint<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(SynchronizationPoint<Exception> ondone) |
protected void |
SingleBufferReadable.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
SimpleBufferedWritable.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
SimpleBufferedReadable.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
ReadableToSeekable.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
PreBufferedReadable.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
MemoryIO.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
IOInMemoryOrFile.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
ByteBuffersIO.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
ByteArrayIO.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
BufferedReverseIOReading.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
BufferedIO.closeResources(SynchronizationPoint<Exception> ondone) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
OutputToInputBuffers.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
OutputToInput.closeResources(SynchronizationPoint<Exception> 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,
SynchronizationPoint<Exception> result) |
protected void |
AbstractSerializer.serializeCollectionElement(SerializationContext.CollectionContext context,
Iterator<?> it,
int elementIndex,
String colPath,
List<SerializationRule> rules,
SynchronizationPoint<Exception> result) |
protected void |
AbstractSerializationSpecWriter.specifyTypeAttribute(SerializationContext.ObjectContext context,
List<SerializationClass.Attribute> attributes,
int index,
List<SerializationRule> rules,
SynchronizationPoint<Exception> sp) |
| Modifier and Type | Method and Description |
|---|---|
SynchronizationPoint<IOException> |
BufferedReadableCharacterStream.canStartReading() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
WritableCharacterStream.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
TextLineStream.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
BufferedWritableCharacterStream.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
BufferedReadableCharacterStreamLocation.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
BufferedReadableCharacterStream.closeResources(SynchronizationPoint<Exception> ondone) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
NonBufferedReadableIOAsBuffered.closeResources(SynchronizationPoint<Exception> ondone) |
protected void |
EmptyReadable.closeResources(SynchronizationPoint<Exception> ondone) |
| Modifier and Type | Field and Description |
|---|---|
protected SynchronizationPoint<Exception> |
WorkProgressImpl.synch |
| Modifier and Type | Method and Description |
|---|---|
SynchronizationPoint<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.CS.closeResources(SynchronizationPoint<Exception> ondone) |
protected abstract void |
ConcurrentCloseable.closeResources(SynchronizationPoint<Exception> ondone) |
| Modifier and Type | Field and Description |
|---|---|
protected SynchronizationPoint<Exception> |
XMLStreamEventsAsync.Next.sp |
| Modifier and Type | Method and Description |
|---|---|
SynchronizationPoint<Exception> |
XMLStreamReaderAsync.next() |
SynchronizationPoint<Exception> |
XMLStreamEventsRecorder.Async.next() |
abstract SynchronizationPoint<Exception> |
XMLStreamEventsAsync.next()
Move forward to the next event.
|
| Constructor and Description |
|---|
Next(SynchronizationPoint<Exception> sp) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
XMLSerializer.serializeCollectionAttributeElement(SerializationContext.CollectionContext context,
Iterator<?> it,
int elementIndex,
String colPath,
List<SerializationRule> rules,
SynchronizationPoint<Exception> result) |
Copyright © 2018. All rights reserved.