- abort() - Method in interface com.github.dm.jrt.channel.Channel
-
Closes the channel and abort the transfer of data, thus aborting the routine invocation.
- abort(Throwable) - Method in interface com.github.dm.jrt.channel.Channel
-
Closes the channel and abort the transfer of data, thus aborting the routine invocation and
causing the specified throwable to be passed as the abortion reason.
The throwable, unless it extends the base
RoutineException, will be wrapped as the cause of an
AbortException instance.
- AbortException - Exception in com.github.dm.jrt.channel
-
Exception indicating that an invocation has been explicitly aborted.
- AbortException(Throwable) - Constructor for exception com.github.dm.jrt.channel.AbortException
-
Constructor.
- AbstractRoutine<IN,OUT> - Class in com.github.dm.jrt.core
-
Basic abstract implementation of a routine.
- accept(IN1, IN2) - Method in interface com.github.dm.jrt.function.BiConsumer
-
Performs this operation on the given arguments.
- accept(IN1, IN2) - Method in class com.github.dm.jrt.function.BiConsumerWrapper
-
- accept(IN) - Method in interface com.github.dm.jrt.function.Consumer
-
Performs this operation on the given argument.
- accept(IN) - Method in class com.github.dm.jrt.function.ConsumerWrapper
-
- acquire() - Method in interface com.github.dm.jrt.util.Mutex
-
Acquires this mutex.
The calling thread will block until the resource becomes available.
- after(TimeDuration) - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- after(long, TimeUnit) - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- after(TimeDuration) - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- after(long, TimeUnit) - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- after(TimeDuration) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- after(long, TimeUnit) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- after(TimeDuration) - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- after(long, TimeUnit) - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- after(TimeDuration) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- after(long, TimeUnit) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Tells the channel to delay the transfer of data of the specified time duration.
Note that an abortion command will be delayed as well.
- afterMax(TimeDuration) - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Tells the channel to wait at the max the specified time duration for the next result to
be available.
- afterMax(long, TimeUnit) - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Tells the channel to wait at the max the specified time duration for the next result to
be available.
- afterMax(TimeDuration) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Tells the channel to wait at the max the specified time duration for the next result to
be available.
- afterMax(long, TimeUnit) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Tells the channel to wait at the max the specified time duration for the next result to
be available.
- afterMax(TimeDuration) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Tells the channel to wait at the max the specified time duration for the next result to
be available.
- afterMax(long, TimeUnit) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Tells the channel to wait at the max the specified time duration for the next result to
be available.
- Alias - Annotation Type in com.github.dm.jrt.annotation
-
This annotation allows to identify the method through a constant, thus avoiding issues when
running obfuscation tools.
- aliasMethod(String) - Method in interface com.github.dm.jrt.builder.ObjectRoutineBuilder
-
Returns a routine used to call the method whose identifying name is specified in a
Alias annotation.
Optional
com.github.dm.jrt.annotation.* method annotations will be honored as
well.
Note that such annotations will override any configuration set through the builder.
- all() - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Consumes all the results by waiting for the routine to complete at the maximum for the
set timeout.
- allInto(Collection<? super OUT>) - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Consumes all the results by waiting for the routine to complete at the maximum for the
set timeout, and put them into the specified collection.
- allInto(Collection<? super OUT>) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Consumes all the results by waiting for the routine to complete at the maximum for the
set timeout, and put them into the specified collection.
- allInto(Collection<? super OUT>) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Consumes all the results by waiting for the routine to complete at the maximum for the
set timeout, and put them into the specified collection.
- and(Predicate<? super IN>) - Method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a composed predicate wrapper that represents a short-circuiting logical AND of this
predicate and another.
- andThen(BiConsumer<? super IN1, ? super IN2>) - Method in class com.github.dm.jrt.function.BiConsumerWrapper
-
Returns a composed bi-consumer wrapper that performs, in sequence, this operation followed
by the after operation.
- andThen(Function<? super OUT, AFTER>) - Method in class com.github.dm.jrt.function.BiFunctionWrapper
-
Returns a composed bi-function wrapper that first applies this function to its input, and
then applies the after function to the result.
- andThen(Consumer<? super IN>) - Method in class com.github.dm.jrt.function.ConsumerWrapper
-
Returns a composed consumer wrapper that performs, in sequence, this operation followed by
the after operation.
- andThen(Function<? super OUT, AFTER>) - Method in class com.github.dm.jrt.function.FunctionWrapper
-
Returns a composed function wrapper that first applies this function to its input, and then
applies the after function to the result.
- andThen(Function<? super OUT, AFTER>) - Method in class com.github.dm.jrt.function.SupplierWrapper
-
Returns a composed supplier wrapper that first gets this supplier result, and then applies
the after function to it.
- apply(IN1, IN2) - Method in interface com.github.dm.jrt.function.BiFunction
-
Applies this function to the given arguments.
- apply(IN1, IN2) - Method in class com.github.dm.jrt.function.BiFunctionWrapper
-
- apply(IN) - Method in interface com.github.dm.jrt.function.Function
-
Applies this function to the given argument.
- apply(IN) - Method in class com.github.dm.jrt.function.FunctionWrapper
-
- asArgs(Object...) - Static method in class com.github.dm.jrt.util.Reflection
-
Returns the specified objects as an array of arguments.
- asInput() - Method in interface com.github.dm.jrt.channel.IOChannel
-
Returns this channel as an input one.
- asOutput() - Method in interface com.github.dm.jrt.channel.IOChannel
-
Returns this channel as an output one.
- asyncCall() - Method in interface com.github.dm.jrt.routine.Routine
-
Short for asyncInvoke().result().
- asyncCall(IN) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for asyncInvoke().pass(input).result().
- asyncCall(IN...) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for asyncInvoke().pass(inputs).result().
- asyncCall(Iterable<? extends IN>) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for asyncInvoke().pass(inputs).result().
- asyncCall(Channel.OutputChannel<? extends IN>) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for asyncInvoke().pass(inputs).result().
- asyncCall() - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- asyncCall(IN) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- asyncCall(IN...) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- asyncCall(Iterable<? extends IN>) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- asyncCall(Channel.OutputChannel<? extends IN>) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- asyncInvoke() - Method in class com.github.dm.jrt.builder.TemplateRoutineBuilder
-
- asyncInvoke() - Method in class com.github.dm.jrt.core.AbstractRoutine
-
- asyncInvoke() - Method in interface com.github.dm.jrt.routine.Routine
-
Invokes the execution of this routine in asynchronous mode.
- asyncStream(Routine<IN, OUT>) - Static method in class com.github.dm.jrt.core.Channels
-
Creates and returns a new streaming channel by invoking the specified routine in asynchronous
mode.
- available() - Method in class com.github.dm.jrt.core.ByteChannel.BufferInputStream
-
- BiConsumer<IN1,IN2> - Interface in com.github.dm.jrt.function
-
Interface representing an operation that accepts two input arguments and returns no result.
- BiConsumerWrapper<IN1,IN2> - Class in com.github.dm.jrt.function
-
Class wrapping a bi-consumer instance.
- BiFunction<IN1,IN2,OUT> - Interface in com.github.dm.jrt.function
-
Interface representing an operation that accepts two input arguments and produces a result.
- BiFunctionWrapper<IN1,IN2,OUT> - Class in com.github.dm.jrt.function
-
Class wrapping a bi-function instance.
- biSink() - Static method in class com.github.dm.jrt.function.BiConsumerWrapper
-
Returns a bi-consumer wrapper just discarding the passed inputs.
The returned object will support concatenation and comparison.
- biSink() - Static method in class com.github.dm.jrt.function.Functions
-
Returns a bi-consumer wrapper just discarding the passed inputs.
The returned object will support concatenation and comparison.
- boxingClass(Class<?>) - Static method in class com.github.dm.jrt.util.Reflection
-
Returns the class boxing the specified primitive type.
- buildChannel() - Method in interface com.github.dm.jrt.builder.IOChannelBuilder
-
Builds and returns the I/O channel instance.
- builder() - Static method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns a channel configuration builder.
- builder() - Static method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns an invocation configuration builder.
- builder() - Static method in class com.github.dm.jrt.builder.ProxyConfiguration
-
Returns a proxy configuration builder.
- builderFrom(ChannelConfiguration) - Static method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns a channel configuration builder initialized with the specified configuration.
- builderFrom() - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns a channel configuration builder initialized with this configuration.
- builderFrom(InvocationConfiguration) - Static method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns an invocation configuration builder initialized with the specified configuration.
- builderFrom() - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns an invocation configuration builder initialized with this configuration.
- builderFrom(ProxyConfiguration) - Static method in class com.github.dm.jrt.builder.ProxyConfiguration
-
Returns a proxy configuration builder initialized with the specified configuration.
- builderFrom() - Method in class com.github.dm.jrt.builder.ProxyConfiguration
-
Returns a proxy configuration builder initialized with this configuration.
- buildProxy(ClassToken<TYPE>) - Method in interface com.github.dm.jrt.builder.ObjectRoutineBuilder
-
Returns a proxy object enabling asynchronous call of the target instance methods.
- buildProxy(Class<TYPE>) - Method in interface com.github.dm.jrt.builder.ObjectRoutineBuilder
-
Returns a proxy object enabling asynchronous call of the target instance methods.
- buildRoutine() - Method in interface com.github.dm.jrt.builder.RoutineBuilder
-
Builds and returns the routine.
- ByteChannel - Class in com.github.dm.jrt.core
-
Utility class focused on the optimization of the transfer of byte chunks through routine
channels.
- byteChannel() - Static method in class com.github.dm.jrt.core.ByteChannel
-
Returns a new byte channel.
- byteChannel(int) - Static method in class com.github.dm.jrt.core.ByteChannel
-
Returns a new byte channel.
- byteChannel(int, int) - Static method in class com.github.dm.jrt.core.ByteChannel
-
Returns a new byte channel.
- ByteChannel.BufferInputStream - Class in com.github.dm.jrt.core
-
Input stream used to read the data contained in a buffer instance.
- ByteChannel.BufferInputStream() - Constructor for class com.github.dm.jrt.core.ByteChannel.BufferInputStream
-
- ByteChannel.BufferOutputStream - Class in com.github.dm.jrt.core
-
Output stream used to write data into the buffer channel.
- ByteChannel.BufferOutputStream() - Constructor for class com.github.dm.jrt.core.ByteChannel.BufferOutputStream
-
- ByteChannel.ByteBuffer - Class in com.github.dm.jrt.core
-
Object acting as a buffer of bytes.
- callFromInvocation(Mutex, Object, Method, List<?>, ResultChannel<Object>, Input.InputMode, Output.OutputMode) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Calls the specified target method from inside a routine invocation.
- cancel(Execution) - Method in interface com.github.dm.jrt.runner.Runner
-
Cancels the specified execution if not already run.
Note that the method will have no effect in case the runner does not maintain a queue or the
specified execution has been already processed at the moment of the call.
Note also that, in case the same execution has been added more than once to the runner queue,
when the method returns, the queue will not contain the execution instance anymore, with the
consequence that the
Runnable.run() method will never be called.
- cancel(Execution) - Method in class com.github.dm.jrt.runner.RunnerDecorator
-
- cast(Object) - Method in class com.github.dm.jrt.util.ClassToken
-
Casts the specified object to this token type.
- castTo(Class<? extends OUT>) - Static method in class com.github.dm.jrt.function.Functions
-
Returns a function wrapper casting the passed inputs to the specified class.
The returned object will support concatenation and comparison.
- castTo(ClassToken<? extends OUT>) - Static method in class com.github.dm.jrt.function.Functions
-
Returns a function wrapper casting the passed inputs to the specified class token type.
The returned object will support concatenation and comparison.
- castTo(Class<? extends OUT>) - Static method in class com.github.dm.jrt.function.FunctionWrapper
-
Returns a function wrapper casting the passed inputs to the specified class.
The returned object will support concatenation and comparison.
- castTo(ClassToken<? extends OUT>) - Static method in class com.github.dm.jrt.function.FunctionWrapper
-
Returns a function wrapper casting the passed inputs to the specified class token type.
The returned object will support concatenation and comparison.
- Channel - Interface in com.github.dm.jrt.channel
-
Interface defining the basic communication channel with the routine invocation.
- Channel.InputChannel<IN> - Interface in com.github.dm.jrt.channel
-
Interface defining an input channel.
- Channel.OutputChannel<OUT> - Interface in com.github.dm.jrt.channel
-
Interface defining an output channel, that is the channel used to read the routine invocation
output data.
- ChannelConfiguration - Class in com.github.dm.jrt.builder
-
Class storing the channel configuration.
- ChannelConfiguration.Builder<TYPE> - Class in com.github.dm.jrt.builder
-
Builder of channel configurations.
- ChannelConfiguration.Builder(ChannelConfiguration.Configurable<? extends TYPE>) - Constructor for class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Constructor.
- ChannelConfiguration.Builder(ChannelConfiguration.Configurable<? extends TYPE>, ChannelConfiguration) - Constructor for class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Constructor.
- ChannelConfiguration.Configurable<TYPE> - Interface in com.github.dm.jrt.builder
-
Interface defining a configurable object.
- channels() - Method in interface com.github.dm.jrt.builder.ConfigurableChannelBuilder
-
Gets the channel configuration builder related to the channel builder instance.
- Channels - Class in com.github.dm.jrt.core
-
Utility class for handling routine channels.
- Channels.Selectable<DATA> - Class in com.github.dm.jrt.core
-
Data class storing information about the origin of the data.
- Channels.Selectable(DATA, int) - Constructor for class com.github.dm.jrt.core.Channels.Selectable
-
Constructor.
- Channels.SelectableOutputChannel<OUT> - Interface in com.github.dm.jrt.core
-
Interface defining a selectable output channel, that is a channel filtering selectable data
and dispatching them to a specific output channel based on their index.
- ChannelTimeoutException - Exception in com.github.dm.jrt.channel
-
Exception indicating a timeout while waiting for data to flow through a channel.
- ChannelTimeoutException(String) - Constructor for exception com.github.dm.jrt.channel.ChannelTimeoutException
-
Constructor.
- checkComplete() - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Checks if the routine is complete, waiting at the maximum for the set timeout.
- classOfType(Class<TYPE>) - Static method in class com.github.dm.jrt.core.InvocationTarget
-
Returns a target based on the specified class.
- ClassToken<TYPE> - Class in com.github.dm.jrt.util
-
Utility abstract class used to work around Java type erasure.
- ClassToken() - Constructor for class com.github.dm.jrt.util.ClassToken
-
- clear() - Method in class com.github.dm.jrt.util.WeakIdentityHashMap
-
- close() - Method in interface com.github.dm.jrt.channel.IOChannel
-
Closes the channel input.
If the channel is already closed, this method has no effect.
- close() - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Closes the channel input.
If the channel is already closed, this method has no effect.
- close() - Method in class com.github.dm.jrt.core.ByteChannel.BufferInputStream
-
- close() - Method in class com.github.dm.jrt.core.ByteChannel.BufferOutputStream
-
- com.github.dm.jrt.annotation - package com.github.dm.jrt.annotation
-
Annotation definitions.
- com.github.dm.jrt.builder - package com.github.dm.jrt.builder
-
Classes and interfaces related to routine builders.
- com.github.dm.jrt.channel - package com.github.dm.jrt.channel
-
Classes and interfaces related to routine channels.
- com.github.dm.jrt.core - package com.github.dm.jrt.core
-
Core classes and interfaces related to routine building and invocation.
- com.github.dm.jrt.function - package com.github.dm.jrt.function
-
Functional interfaces and utility classes.
- com.github.dm.jrt.invocation - package com.github.dm.jrt.invocation
-
Classes and interfaces related to routine invocations.
- com.github.dm.jrt.log - package com.github.dm.jrt.log
-
Log related classes and definitions.
- com.github.dm.jrt.routine - package com.github.dm.jrt.routine
-
Routine interfaces and implementations.
- com.github.dm.jrt.runner - package com.github.dm.jrt.runner
-
Classes and interfaces related to routine runners.
- com.github.dm.jrt.util - package com.github.dm.jrt.util
-
Utility classes definitions.
- combine(IOChannel<BEFORE, ? extends IN>) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Creates a new streaming channel which is the concatenation of the specified channel and this
one.
- combine(Channel.InputChannel<?>...) - Static method in class com.github.dm.jrt.core.Channels
-
Combines the specified channels into a selectable one.
- combine(int, Channel.InputChannel<?>...) - Static method in class com.github.dm.jrt.core.Channels
-
Combines the specified channels into a selectable one.
Note that the returned channel must be explicitly closed in order to ensure the
completion of the invocation lifecycle.
- combine(int, List<? extends Channel.InputChannel<? extends IN>>) - Static method in class com.github.dm.jrt.core.Channels
-
Combines the specified channels into a selectable one.
Note that the returned channel must be explicitly closed in order to ensure the
completion of the invocation lifecycle.
- combine(List<? extends Channel.InputChannel<? extends IN>>) - Static method in class com.github.dm.jrt.core.Channels
-
Combines the specified channels into a selectable one.
- combine(Map<Integer, ? extends Channel.InputChannel<? extends IN>>) - Static method in class com.github.dm.jrt.core.Channels
-
Combines the specified channels into a selectable one.
Note that the returned channel must be explicitly closed in order to ensure the
completion of the invocation lifecycle.
- CommandInvocation<OUT> - Class in com.github.dm.jrt.invocation
-
Abstract implementation of an invocation performing a command (that is, no input is required)
eventually returning output data.
- CommandInvocation() - Constructor for class com.github.dm.jrt.invocation.CommandInvocation
-
- compose(Function<BEFORE, ? extends IN>) - Method in class com.github.dm.jrt.function.FunctionWrapper
-
Returns a composed function wrapper that first applies the before function to its input,
and then applies this function to the result.
- concat(IOChannel<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Creates a new streaming channel which is the concatenation of this channel and the specified
one.
- ConfigurableBuilder<TYPE> - Interface in com.github.dm.jrt.builder
-
Interface defining a configurable builder of routines.
- ConfigurableChannelBuilder<TYPE> - Interface in com.github.dm.jrt.builder
-
Interface defining a configurable builder of routines.
- configurationWithAnnotations(InvocationConfiguration, Method) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Returns a configuration properly modified by taking into account the annotations added to the
specified method.
- configurationWithAnnotations(ProxyConfiguration, Method) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Returns a configuration properly modified by taking into account the annotations added to the
specified method.
- constant(OUT) - Static method in class com.github.dm.jrt.function.Functions
-
Returns a supplier wrapper always returning the same result.
The returned object will support concatenation and comparison.
- constant(OUT) - Static method in class com.github.dm.jrt.function.SupplierWrapper
-
Returns a supplier wrapper always returning the same result.
The returned object will support concatenation and comparison.
- Consumer<IN> - Interface in com.github.dm.jrt.function
-
Interface representing an operation that accepts an input argument and returns no result.
- consumerCommand(Consumer<? super ResultChannel<OUT>>) - Static method in class com.github.dm.jrt.function.Functions
-
Builds and returns a new command invocation based on the specified consumer instance.
In order to prevent undesired leaks, the class of the specified consumer must have a static
context.
- consumerFactory(BiConsumer<? super List<? extends IN>, ? super ResultChannel<OUT>>) - Static method in class com.github.dm.jrt.function.Functions
-
Builds and returns a new invocation factory based on the specified bi-consumer instance.
In order to prevent undesired leaks, the class of the specified bi-consumer must have a
static context.
- consumerFilter(BiConsumer<? super IN, ? super ResultChannel<OUT>>) - Static method in class com.github.dm.jrt.function.Functions
-
Builds and returns a new filter invocation based on the specified bi-consumer instance.
In order to prevent undesired leaks, the class of the specified bi-consumer must have a
static context.
- ConsumerWrapper<IN> - Class in com.github.dm.jrt.function
-
Class wrapping a consumer instance.
- containsKey(Object) - Method in class com.github.dm.jrt.util.WeakIdentityHashMap
-
- containsValue(Object) - Method in class com.github.dm.jrt.util.WeakIdentityHashMap
-
- CoreInstances - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the size of the core pool of reusable
invocation instances.
- current() - Static method in class com.github.dm.jrt.util.Time
-
Creates and returns an object representing the current system time in milliseconds.
- currentNano() - Static method in class com.github.dm.jrt.util.Time
-
Creates and returns an object representing the current high precision system time in
nanoseconds.
- data - Variable in class com.github.dm.jrt.core.Channels.Selectable
-
The data object.
- data() - Method in class com.github.dm.jrt.core.Channels.Selectable
-
Returns the data object casted to the specific type.
- days(long) - Static method in class com.github.dm.jrt.util.Time
-
Creates and returns an object representing the specified number of days.
- days(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the specified number of days.
- daysTime() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in days.
- daysTime() - Method in class com.github.dm.jrt.util.TimeDuration
-
Converts this duration in days.
- dbg(List<Object>, String, Throwable) - Method in interface com.github.dm.jrt.log.Log
-
Logs a debug message.
- dbg(String) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(String, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(String, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(String, Object, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(String, Object, Object, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(String, Object...) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(Throwable) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug exception.
- dbg(Throwable, String) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(Throwable, String, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(Throwable, String, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(Throwable, String, Object, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(Throwable, String, Object, Object, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(Throwable, String, Object...) - Method in class com.github.dm.jrt.log.Logger
-
Logs a debug message.
- dbg(List<Object>, String, Throwable) - Method in class com.github.dm.jrt.log.TemplateLog
-
- DeadlockException - Exception in com.github.dm.jrt.channel
-
Exception indicating a possible deadlock.
- DeadlockException(String) - Constructor for exception com.github.dm.jrt.channel.DeadlockException
-
Constructor.
- DecoratingInvocationFactory<IN,OUT> - Class in com.github.dm.jrt.invocation
-
Class decorating the invocations produced by an invocation factory.
- DecoratingInvocationFactory(InvocationFactory<IN, OUT>) - Constructor for class com.github.dm.jrt.invocation.DecoratingInvocationFactory
-
Constructor.
- DEFAULT - Static variable in class com.github.dm.jrt.builder.ChannelConfiguration
-
Constant indicating the default value of an integer attribute.
- DEFAULT - Static variable in class com.github.dm.jrt.builder.InvocationConfiguration
-
Constant indicating the default value of an integer attribute.
- DEFAULT_BUFFER_SIZE - Static variable in class com.github.dm.jrt.core.ByteChannel
-
The default buffer size in number of bytes.
- DEFAULT_CONFIGURATION - Static variable in class com.github.dm.jrt.builder.ChannelConfiguration
-
Empty configuration constant.
The configuration has all the options set to their default.
- DEFAULT_CONFIGURATION - Static variable in class com.github.dm.jrt.builder.InvocationConfiguration
-
Empty configuration constant.
The configuration has all the options set to their default.
- DEFAULT_CONFIGURATION - Static variable in class com.github.dm.jrt.builder.ProxyConfiguration
-
Empty configuration constant.
The configuration has all the options set to their default.
- DEFAULT_POOL_SIZE - Static variable in class com.github.dm.jrt.core.ByteChannel
-
The default core pool size.
- DelegatingInvocation<IN,OUT> - Class in com.github.dm.jrt.core
-
Invocation implementation delegating the execution to another routine.
- DelegatingInvocation.DelegationType - Enum in com.github.dm.jrt.core
-
Delegation type enumeration.
- distribute(Channel.InputChannel<?>...) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a new channel distributing the input data among the specified channels.
- distribute(List<? extends Channel.InputChannel<? extends IN>>) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a new channel distributing the input data among the specified channels.
- distributeAndFlush(Channel.InputChannel<?>...) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a new channel distributing the input data among the specified channels.
- distributeAndFlush(List<? extends Channel.InputChannel<? extends IN>>) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a new channel distributing the input data among the specified channels.
- dynamicPoolRunner(int, int, long, TimeUnit) - Static method in class com.github.dm.jrt.runner.Runners
-
Returns a runner employing a dynamic pool of threads.
The number of threads may increase when needed from the core to the maximum pool size.
- factoryFrom(Routine<IN, OUT>, DelegatingInvocation.DelegationType) - Static method in class com.github.dm.jrt.core.DelegatingInvocation
-
Returns a factory of delegating invocations.
- factoryOf(Class<? extends Invocation<IN, OUT>>) - Static method in class com.github.dm.jrt.invocation.Invocations
-
Builds and returns a new invocation factory creating instances of the specified class.
- factoryOf(Class<? extends Invocation<IN, OUT>>, Object...) - Static method in class com.github.dm.jrt.invocation.Invocations
-
Builds and returns a new invocation factory creating instances of the specified class by
passing the specified arguments to the class constructor.
- factoryOf(ClassToken<? extends Invocation<IN, OUT>>) - Static method in class com.github.dm.jrt.invocation.Invocations
-
Builds and returns a new invocation factory creating instances of the specified class token.
- factoryOf(ClassToken<? extends Invocation<IN, OUT>>, Object...) - Static method in class com.github.dm.jrt.invocation.Invocations
-
Builds and returns a new invocation factory creating instances of the specified class token
by passing the specified arguments to the class constructor.
- factoryOf(Invocation<IN, OUT>) - Static method in class com.github.dm.jrt.invocation.Invocations
-
Builds and returns a new invocation factory creating instances of the specified object.
- factoryOf(Invocation<IN, OUT>, Object...) - Static method in class com.github.dm.jrt.invocation.Invocations
-
Builds and returns a new invocation factory creating instances of the specified object by
passing the specified arguments to the class constructor.
- factoryOf() - Static method in class com.github.dm.jrt.invocation.PassingInvocation
-
Returns a factory of passing invocations.
- FilterInvocation<IN,OUT> - Class in com.github.dm.jrt.invocation
-
Abstract implementation of an invocation filtering each input and transforming it in output data.
- FilterInvocation() - Constructor for class com.github.dm.jrt.invocation.FilterInvocation
-
- findConstructor(Class<TYPE>, Object...) - Static method in class com.github.dm.jrt.util.Reflection
-
Finds the constructor of the specified class best matching the passed arguments.
- findMethod(Class<?>, String, Class<?>...) - Static method in class com.github.dm.jrt.util.Reflection
-
Finds the method matching the specified parameters.
- first() - Static method in class com.github.dm.jrt.function.BiFunctionWrapper
-
Returns a bi-function wrapper just returning the first passed argument.
The returned object will support concatenation and comparison.
- first() - Static method in class com.github.dm.jrt.function.Functions
-
Returns a bi-function wrapper just returning the first passed argument.
The returned object will support concatenation and comparison.
- flush() - Method in class com.github.dm.jrt.core.ByteChannel.BufferOutputStream
-
- from(CommandInvocation<OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Builds and returns a new functional routine generating outputs from the specified command
invocation.
- from(Consumer<? super ResultChannel<OUT>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Builds and returns a new functional routine generating outputs from the specified consumer.
- from(Supplier<OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Builds and returns a new functional routine generating outputs from the specified supplier.
- fromUnit(long, TimeUnit) - Static method in class com.github.dm.jrt.util.Time
-
Creates and returns an object representing the specified time value in the specified time
unit.
- fromUnit(long, TimeUnit) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the specified time value in the specified time
unit.
- Function<IN,OUT> - Interface in com.github.dm.jrt.function
-
Interface representing a function that accepts one argument and produces a result.
- FunctionalRoutine<IN,OUT> - Interface in com.github.dm.jrt.function
-
Interface defining a functional routine, that is, a routine concatenating map and reduce
functions.
Each function in the channel is backed by a sub-routine instance, that can have its own specific
configuration and invocation mode.
- FunctionalRoutineBuilder - Interface in com.github.dm.jrt.function
-
Interface defining a builder of functional routines.
- functionFactory(Function<? super List<? extends IN>, OUT>) - Static method in class com.github.dm.jrt.function.Functions
-
Builds and returns a new invocation factory based on the specified function instance.
In order to prevent undesired leaks, the class of the specified function must have a static
context.
- functionFilter(Function<? super IN, OUT>) - Static method in class com.github.dm.jrt.function.Functions
-
Builds and returns a new filter invocation based on the specified function instance.
In order to prevent undesired leaks, the class of the specified function must have a static
context.
- FunctionInvocation<IN,OUT> - Class in com.github.dm.jrt.invocation
-
Special abstract implementation that centralizes the routine invocation inside a single method,
which gets called only when all the inputs are available.
- FunctionInvocation() - Constructor for class com.github.dm.jrt.invocation.FunctionInvocation
-
- Functions - Class in com.github.dm.jrt.function
-
Utility class supporting functional programming.
- FunctionWrapper<IN,OUT> - Class in com.github.dm.jrt.function
-
Class wrapping a function instance.
- get() - Method in interface com.github.dm.jrt.function.Supplier
-
Gets a result.
- get() - Method in class com.github.dm.jrt.function.SupplierWrapper
-
- get(Object) - Method in class com.github.dm.jrt.util.WeakIdentityHashMap
-
- getAnnotatedMethod(Class<?>, String) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Gets the method annotated with the specified alias name.
- getAsyncRunnerOr(Runner) - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns the runner used for asynchronous inputs (null by default).
- getChannelMaxSizeOr(int) - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns the maximum number of buffered data (DEFAULT by default).
- getChannelOrderTypeOr(InvocationConfiguration.OrderType) - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns the data order (null by default).
- getChannelTimeoutOr(TimeDuration) - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns the maximum timeout while waiting for an object to be passed to the channel (null by
default).
- getContextList() - Method in class com.github.dm.jrt.log.Logger
-
Returns the list of contexts.
- getCoreInstancesOr(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the maximum number of retained invocation instances (DEFAULT by default).
- getDefaultLevel() - Static method in class com.github.dm.jrt.log.Logger
-
Gets the default log level.
- getDefaultLog() - Static method in class com.github.dm.jrt.log.Logger
-
Gets the default log instance.
- getGenericType() - Method in class com.github.dm.jrt.util.ClassToken
-
Gets the generic type of this token.
- getInputMaxSizeOr(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the maximum number of buffered input data (DEFAULT by default).
- getInputMode(Method, int) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Gets the input transfer mode associated to the specified method parameter, while also
validating the use of the
Input annotation.
In case no annotation is present, the function will return with null.
- getInputOrderTypeOr(InvocationConfiguration.OrderType) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the input data order (null by default).
- getInputTimeoutOr(TimeDuration) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the maximum timeout while waiting for an input to be passed to the input channel
(null by default).
- getInvocationMode(Method) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Gets the routine invocation mode associated to the specified method, while also validating
the use of the
Invoke annotation.
In case no annotation is present, the function will return with null.
- getLog() - Method in class com.github.dm.jrt.log.Logger
-
Returns the log instance of this logger.
- getLogLevel() - Method in class com.github.dm.jrt.log.Logger
-
Returns the log level of this logger.
- getLogLevelOr(Log.Level) - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns the log level (null by default).
- getLogLevelOr(Log.Level) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the log level (null by default).
- getLogOr(Log) - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns the log instance (null by default).
- getLogOr(Log) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the log instance (null by default).
- getMaxInstancesOr(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the maximum number of parallel running invocation instances (DEFAULT by default).
- getOutputMaxSizeOr(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the maximum number of buffered output data (DEFAULT by default).
- getOutputMode(Method, Class<?>) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Gets the output transfer mode of the return type of the specified method, while also
validating the use of the
Output annotation.
In case no annotation is present, the function will return with null.
- getOutputOrderTypeOr(InvocationConfiguration.OrderType) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the output data order (null by default).
- getOutputTimeoutOr(TimeDuration) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the maximum timeout while waiting for an output to be passed to the result channel
(null by default).
- getPriorityOr(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the invocation priority (DEFAULT by default).
- getRawClass() - Method in class com.github.dm.jrt.util.ClassToken
-
Gets the raw class of this token.
- getReadTimeoutActionOr(InvocationConfiguration.TimeoutActionType) - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns the action to be taken if the timeout elapses before a readable output is available
(null by default).
- getReadTimeoutActionOr(InvocationConfiguration.TimeoutActionType) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the action to be taken if the timeout elapses before a readable result is available
(null by default).
- getReadTimeoutOr(TimeDuration) - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Returns the timeout for the channel to produce a readable output (null by default).
- getReadTimeoutOr(TimeDuration) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the timeout for an invocation instance to produce a readable result (null by
default).
- getRunner(int) - Method in class com.github.dm.jrt.runner.PriorityRunner
-
Returns a runner enqueuing executions with the specified priority.
- getRunnerOr(Runner) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Returns the runner used for asynchronous invocations (null by default).
- getSharedFieldsOr(List<String>) - Method in class com.github.dm.jrt.builder.ProxyConfiguration
-
Returns the shared field names (null by default).
- getSharedMutex(Object, List<String>) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Returns the cached mutex associated with the specified target and shared fields.
If the cache was empty, it is filled with a new object automatically created.
If the target is null
Mutex.NO_MUTEX will be returned.
- getSize() - Method in class com.github.dm.jrt.core.ByteChannel.ByteBuffer
-
Returns the size in number of bytes of this buffer.
- getTarget() - Method in class com.github.dm.jrt.core.InvocationTarget.ClassInvocationTarget
-
- getTarget() - Method in class com.github.dm.jrt.core.InvocationTarget
-
Returns the target of the invocation.
- getTarget() - Method in class com.github.dm.jrt.core.InvocationTarget.InstanceInvocationTarget
-
- getTargetClass() - Method in class com.github.dm.jrt.core.InvocationTarget.ClassInvocationTarget
-
- getTargetClass() - Method in class com.github.dm.jrt.core.InvocationTarget
-
Returns the target class.
- getTargetClass() - Method in class com.github.dm.jrt.core.InvocationTarget.InstanceInvocationTarget
-
- getTargetMethodInfo(Class<?>, Method) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Gets info about the method targeted by the specified proxy one.
- identity() - Static method in class com.github.dm.jrt.function.Functions
-
Returns the identity function wrapper.
The returned object will support concatenation and comparison.
- identity() - Static method in class com.github.dm.jrt.function.FunctionWrapper
-
Returns the identity function wrapper.
The returned object will support concatenation and comparison.
- immediately() - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Tells the channel to not wait for results to be available.
- immediately() - Method in interface com.github.dm.jrt.channel.IOChannel
-
Tells the channel to not wait for results to be available.
- immediately() - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Tells the channel to not wait for results to be available.
- index - Variable in class com.github.dm.jrt.core.Channels.Selectable
-
The origin channel index.
- index(int) - Method in interface com.github.dm.jrt.core.Channels.SelectableOutputChannel
-
Returns an output channel returning selectable data matching the specify index.
New output channels can be bound until data start coming After that, any attempt to bound
a channel to a new index will cause an exception to be thrown.
- INFINITY - Static variable in class com.github.dm.jrt.util.TimeDuration
-
Time duration instance representing the infinity.
- Input - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the original parameter type of the target
object method.
- Input.InputMode - Enum in com.github.dm.jrt.annotation
-
Input transfer mode type.
The mode indicates in which way a parameter is passed to the wrapped method.
- InputDeadlockException - Exception in com.github.dm.jrt.channel
-
Exception indicating a possible deadlock while waiting for room in the input channel buffer.
- InputDeadlockException(String) - Constructor for exception com.github.dm.jrt.channel.InputDeadlockException
-
Constructor.
- InputMaxSize - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the maximum number of data buffered inside
the input channel.
- inputMode - Variable in class com.github.dm.jrt.core.RoutineBuilders.MethodInfo
-
The input transfer mode.
- InputOrder - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the order of the data passed to the input
channel.
- Inputs - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the original parameter types of the target
object method.
- inputStream(ByteChannel.ByteBuffer) - Static method in class com.github.dm.jrt.core.ByteChannel
-
Creates an input stream returning the data contained in the specified buffer.
Note that only one input stream can be created for each buffer.
- inputStream(ByteChannel.ByteBuffer...) - Static method in class com.github.dm.jrt.core.ByteChannel
-
Creates an input stream returning the concatenation of the data contained in the specified
buffers.
Note that only one input stream can be created for each buffer.
- inputStream(List<ByteChannel.ByteBuffer>) - Static method in class com.github.dm.jrt.core.ByteChannel
-
Creates an input stream returning the concatenation of the data contained in the specified
buffers.
Note that only one input stream can be created for each buffer.
- InputTimeout - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the timeout for an input channel to have room
for additional data.
- InputTimeoutException - Exception in com.github.dm.jrt.channel
-
Exception indicating that no room in the input channel buffer became available before the
specific timeout elapsed.
- InputTimeoutException(String) - Constructor for exception com.github.dm.jrt.channel.InputTimeoutException
-
Constructor.
- instance(TYPE) - Static method in class com.github.dm.jrt.core.InvocationTarget
-
Returns a target based on the specified instance.
- Invocation<IN,OUT> - Interface in com.github.dm.jrt.invocation
-
Interface defining a routine invocation.
- InvocationChannel<IN,OUT> - Interface in com.github.dm.jrt.channel
-
Interface defining an invocation input channel, that is the channel used to pass input data to
the routine invocation.
- InvocationConfiguration - Class in com.github.dm.jrt.builder
-
Class storing the invocation configuration.
- InvocationConfiguration.AgingPriority - Interface in com.github.dm.jrt.builder
-
Interface exposing constants which can be used as a common set of priorities.
Note that, since the priority value can be any in an integer range, it is always possible to
customize the values so to create a personalized set.
- InvocationConfiguration.Builder<TYPE> - Class in com.github.dm.jrt.builder
-
Builder of invocation configurations.
- InvocationConfiguration.Builder(InvocationConfiguration.Configurable<? extends TYPE>) - Constructor for class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Constructor.
- InvocationConfiguration.Builder(InvocationConfiguration.Configurable<? extends TYPE>, InvocationConfiguration) - Constructor for class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Constructor.
- InvocationConfiguration.Configurable<TYPE> - Interface in com.github.dm.jrt.builder
-
Interface defining a configurable object.
- InvocationConfiguration.NotAgingPriority - Interface in com.github.dm.jrt.builder
-
Interface exposing constants which can be used as a set of priorities ignoring the aging of
executions.
Note that, since the priority value can be any in an integer range, it is always possible to
customize the values so to create a personalized set.
- InvocationConfiguration.OrderType - Enum in com.github.dm.jrt.builder
-
Enumeration defining how data are ordered inside a channel.
- InvocationConfiguration.TimeoutActionType - Enum in com.github.dm.jrt.builder
-
Enumeration indicating the type of action to be taken on output channel timeout.
- InvocationDeadlockException - Exception in com.github.dm.jrt.invocation
-
Exception indicating a possible deadlock while waiting for an invocation instance to become
available.
- InvocationDeadlockException(String) - Constructor for exception com.github.dm.jrt.invocation.InvocationDeadlockException
-
Constructor.
- InvocationDecorator<IN,OUT> - Class in com.github.dm.jrt.invocation
-
Base invocation decorator implementation.
- InvocationDecorator(Invocation<IN, OUT>) - Constructor for class com.github.dm.jrt.invocation.InvocationDecorator
-
Constructor.
- InvocationException - Exception in com.github.dm.jrt.invocation
-
Exception wrapping any throwable escaping an invocation execution.
- InvocationException(Throwable) - Constructor for exception com.github.dm.jrt.invocation.InvocationException
-
Constructor.
- InvocationFactory<IN,OUT> - Class in com.github.dm.jrt.invocation
-
Abstract class defining an invocation factory.
- InvocationFactory() - Constructor for class com.github.dm.jrt.invocation.InvocationFactory
-
- InvocationInterruptedException - Exception in com.github.dm.jrt.invocation
-
Exception wrapping a thread interrupted exception caught inside a routine execution.
- InvocationInterruptedException(InterruptedException) - Constructor for exception com.github.dm.jrt.invocation.InvocationInterruptedException
-
Constructor.
- invocationMode - Variable in class com.github.dm.jrt.core.RoutineBuilders.MethodInfo
-
The routine invocation mode.
- invocations() - Method in interface com.github.dm.jrt.builder.ConfigurableBuilder
-
Gets the invocation configuration builder related to the routine builder instance.
The configuration options not supported by the routine builder implementation might be
ignored.
- invocations() - Method in class com.github.dm.jrt.builder.TemplateRoutineBuilder
-
- Invocations - Class in com.github.dm.jrt.invocation
-
Utility class for creating invocation factory objects.
- InvocationTarget<TYPE> - Class in com.github.dm.jrt.core
-
Class representing an invocation target.
- InvocationTarget.ClassInvocationTarget<TYPE> - Class in com.github.dm.jrt.core
-
Invocation target wrapping a class.
- InvocationTarget.InstanceInvocationTarget<TYPE> - Class in com.github.dm.jrt.core
-
Invocation target wrapping an object instance.
- Invoke - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the invocation mode of the routine wrapping
the target object method.
- Invoke.InvocationMode - Enum in com.github.dm.jrt.annotation
-
Routine invocation mode type.
The mode indicates in which way the wrapping routine should be invoked.
- invokeRoutine(Routine<Object, Object>, Method, Object[], Invoke.InvocationMode, Input.InputMode, Output.OutputMode) - Static method in class com.github.dm.jrt.core.RoutineBuilders
-
Invokes the routine wrapping the specified method.
- io() - Static method in class com.github.dm.jrt.core.JRoutine
-
Returns an I/O channel builder.
- IOChannel<IN,OUT> - Interface in com.github.dm.jrt.channel
-
Interface defining a channel which is both an input and an output.
- IOChannelBuilder - Interface in com.github.dm.jrt.builder
-
Interface defining a builder of I/O channel objects.
- isAssignableFrom(ClassToken<?>) - Method in class com.github.dm.jrt.util.ClassToken
-
Checks if this token raw class is equal to or is a superclass of the specified one.
- isAssignableTo(Class<?>) - Method in class com.github.dm.jrt.core.InvocationTarget.ClassInvocationTarget
-
- isAssignableTo(Class<?>) - Method in class com.github.dm.jrt.core.InvocationTarget.InstanceInvocationTarget
-
- isAssignableTo(Class<?>) - Method in class com.github.dm.jrt.core.InvocationTarget
-
Checks if this invocation target is assignable to the specified class.
- isBound() - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Checks if this channel is bound to a consumer or another channel.
- isEmpty() - Method in interface com.github.dm.jrt.channel.Channel
-
Checks if the channel is empty, that is, no data is stored in it.
- isEmpty() - Method in class com.github.dm.jrt.util.WeakIdentityHashMap
-
- isEqual(Object) - Static method in class com.github.dm.jrt.function.Functions
-
Returns a predicate wrapper testing for equality to the specified object.
The returned object will support concatenation and comparison.
- isEqual(Object) - Static method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a predicate wrapper testing for equality to the specified object.
The returned object will support concatenation and comparison.
- isExecutionThread() - Method in interface com.github.dm.jrt.runner.Runner
-
Checks if the calling thread belongs to the ones employed by the runner implementation.
- isExecutionThread() - Method in class com.github.dm.jrt.runner.RunnerDecorator
-
- isInfinity() - Method in class com.github.dm.jrt.util.TimeDuration
-
Checks if this duration represents the infinity.
- isInstanceOf(Class<?>) - Static method in class com.github.dm.jrt.function.Functions
-
Returns a predicate wrapper testing whether the passed inputs are instances of the specified
class.
The returned object will support concatenation and comparison.
- isInstanceOf(Class<?>) - Static method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a predicate wrapper testing whether the passed inputs are instances of the specified
class.
The returned object will support concatenation and comparison.
- isInterface() - Method in class com.github.dm.jrt.util.ClassToken
-
Checks if this token raw class represents an interface.
- isNull() - Static method in class com.github.dm.jrt.function.Functions
-
Returns a predicate wrapper returning true when the passed argument is null.
The returned object will support concatenation and comparison.
- isNull() - Static method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a predicate wrapper returning true when the passed argument is null.
The returned object will support concatenation and comparison.
- isOpen() - Method in interface com.github.dm.jrt.channel.Channel
-
Checks if the channel is open, that is, more data are expected to be passed to it.
- isSame(Object) - Static method in class com.github.dm.jrt.function.Functions
-
Returns a predicate wrapper testing for identity to the specified object.
The returned object will support concatenation and comparison.
- isSame(Object) - Static method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a predicate wrapper testing for identity to the specified object.
The returned object will support concatenation and comparison.
- isSameTypeOf(Class<?>) - Method in class com.github.dm.jrt.core.InvocationTarget.ClassInvocationTarget
-
- isSameTypeOf(Class<?>) - Method in class com.github.dm.jrt.core.InvocationTarget.InstanceInvocationTarget
-
- isSameTypeOf(Class<?>) - Method in class com.github.dm.jrt.core.InvocationTarget
-
Checks if this invocation target is of the specified type.
- isTrue() - Method in interface com.github.dm.jrt.util.TimeDuration.Check
-
Checks if true.
- isZero() - Method in class com.github.dm.jrt.util.Time
-
Checks if this time is zero.
- makeAccessible(Constructor<?>) - Static method in class com.github.dm.jrt.util.Reflection
-
Makes the specified constructor accessible.
- makeAccessible(Method) - Static method in class com.github.dm.jrt.util.Reflection
-
Makes the specified method accessible.
- mark(int) - Method in class com.github.dm.jrt.core.ByteChannel.BufferInputStream
-
- MaxInstances - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the maximum number of concurrently running
invocation instances.
- mayBeCanceled() - Method in interface com.github.dm.jrt.runner.Execution
-
Checks if this execution might be canceled in the future.
Note that this is just an hint for the runner: if false is returned, the runner might not be
able to cancel the execution when requested.
- mayBeCanceled() - Method in class com.github.dm.jrt.runner.TemplateExecution
-
- merge(int, List<? extends Channel.OutputChannel<? extends OUT>>) - Static method in class com.github.dm.jrt.core.Channels
-
Merges the specified channels into a selectable one.
Note that the channels will be bound as a result of the call.
- merge(int, Channel.OutputChannel<?>...) - Static method in class com.github.dm.jrt.core.Channels
-
Merges the specified channels into a selectable one.
Note that the channels will be bound as a result of the call.
- merge(List<? extends Channel.OutputChannel<? extends OUT>>) - Static method in class com.github.dm.jrt.core.Channels
-
Merges the specified channels into a selectable one.
- merge(Map<Integer, ? extends Channel.OutputChannel<? extends OUT>>) - Static method in class com.github.dm.jrt.core.Channels
-
Merges the specified channels into a selectable one.
Note that the channels will be bound as a result of the call.
- merge(Channel.OutputChannel<?>...) - Static method in class com.github.dm.jrt.core.Channels
-
Merges the specified channels into a selectable one.
- method(String, Class<?>...) - Method in interface com.github.dm.jrt.builder.ObjectRoutineBuilder
-
Returns a routine used to call the specified method.
- method(Method) - Method in interface com.github.dm.jrt.builder.ObjectRoutineBuilder
-
Returns a routine used to call the specified method.
- method - Variable in class com.github.dm.jrt.core.RoutineBuilders.MethodInfo
-
The target method.
- micros(long) - Static method in class com.github.dm.jrt.util.Time
-
Creates and returns an object representing the specified number of microseconds.
- micros(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the specified number of microseconds.
- microsTime() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in microseconds.
- microsTime() - Method in class com.github.dm.jrt.util.TimeDuration
-
Converts this duration in microseconds.
- millis(long) - Static method in class com.github.dm.jrt.util.Time
-
Creates and returns an object representing the specified number of milliseconds.
- millis(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the specified number of milliseconds.
- millisTime() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in milliseconds.
- millisTime() - Method in class com.github.dm.jrt.util.TimeDuration
-
Converts this duration in milliseconds.
- minus(Time) - Method in class com.github.dm.jrt.util.Time
-
Returns a new instance whose time value is decremented by the specified one.
Note that the unit of the returned time will match the one with the highest precision.
- minus(Time) - Method in class com.github.dm.jrt.util.TimeDuration
-
Returns a new instance whose time value is decremented by the specified one.
Note that the unit of the returned time will match the one with the highest precision.
Note also that, if the resulting time is negative, the value will be clipped to 0.
- minutes(long) - Static method in class com.github.dm.jrt.util.Time
-
Creates and returns an object representing the specified number of minutes.
- minutes(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the specified number of minutes.
- MINUTES_IN_DAY - Static variable in class com.github.dm.jrt.util.Time
-
The number of minutes in a day.
- MINUTES_IN_HOUR - Static variable in class com.github.dm.jrt.util.Time
-
The number of minutes in an hour.
- minutesTime() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in minutes.
- minutesTime() - Method in class com.github.dm.jrt.util.TimeDuration
-
Converts this duration in minutes.
- Mutex - Interface in com.github.dm.jrt.util
-
Interface defining a reentrant mutex.
- nanos(long) - Static method in class com.github.dm.jrt.util.Time
-
Creates and returns an object representing the specified number of nanoseconds.
- nanos(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the specified number of nanoseconds.
- nanosTime() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in nanoseconds.
- nanosTime() - Method in class com.github.dm.jrt.util.TimeDuration
-
Converts this duration in nanoseconds.
- negate() - Method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a predicate wrapper that represents the logical negation of this predicate.
- negative() - Static method in class com.github.dm.jrt.function.Functions
-
Returns a predicate wrapper always returning the false.
The returned object will support concatenation and comparison.
- negative() - Static method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a predicate wrapper always returning the false.
The returned object will support concatenation and comparison.
- newInvocation() - Method in class com.github.dm.jrt.invocation.CommandInvocation
-
- newInvocation() - Method in class com.github.dm.jrt.invocation.DecoratingInvocationFactory
-
- newInvocation() - Method in class com.github.dm.jrt.invocation.FilterInvocation
-
- newInvocation() - Method in class com.github.dm.jrt.invocation.InvocationFactory
-
Creates and return a new invocation instance.
A proper implementation will return a new invocation instance each time it is called, unless
the returned object is immutable and does not cause any side effect.
Any behavior other than that may lead to unexpected results.
- newLogger(Object) - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
Creates a new logger.
- newLogger(Log, Log.Level, Object) - Static method in class com.github.dm.jrt.log.Logger
-
Creates a new logger.
- next() - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Consumes the first available result by waiting at the maximum for the set timeout.
- next(int) - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Consumes the first count available results by waiting at the maximum for the set
timeout.
- NO_ARGS - Static variable in class com.github.dm.jrt.util.Reflection
-
Constant defining an empty argument array for methods or constructors.
- NO_MUTEX - Static variable in interface com.github.dm.jrt.util.Mutex
-
Empty mutex implementation.
This mutex does not implement any kind of synchronization.
- NORMAL_PRIORITY - Static variable in interface com.github.dm.jrt.builder.InvocationConfiguration.AgingPriority
-
Normal priority.
- NORMAL_PRIORITY - Static variable in interface com.github.dm.jrt.builder.InvocationConfiguration.NotAgingPriority
-
Normal priority.
- notNull() - Static method in class com.github.dm.jrt.function.Functions
-
Returns a predicate wrapper returning true when the passed argument is not null.
The returned object will support concatenation and comparison.
- notNull() - Static method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a predicate wrapper returning true when the passed argument is not null.
The returned object will support concatenation and comparison.
- now() - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Tells the channel to not delay the transfer of data.
- now() - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Tells the channel to not delay the transfer of data.
- now() - Method in interface com.github.dm.jrt.channel.IOChannel
-
Tells the channel to not delay the transfer of data.
- now() - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Tells the channel to not delay the transfer of data.
- now() - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Tells the channel to not delay the transfer of data.
- nullLog() - Static method in class com.github.dm.jrt.log.Logs
-
Returns the null log shared instance.
- NullLog - Class in com.github.dm.jrt.log
-
Log implementation simply discarding all messages.
- NullLog() - Constructor for class com.github.dm.jrt.log.NullLog
-
- ObjectRoutineBuilder - Interface in com.github.dm.jrt.builder
-
Interface defining a builder of routines wrapping an object methods.
- on(InvocationTarget<?>) - Static method in class com.github.dm.jrt.core.JRoutine
-
Returns a routine builder wrapping the specified target object.
Note that it is responsibility of the caller to retain a strong reference to the target
instance to prevent it from being garbage collected.
Note also that the invocation input data will be cached, and the results will be produced
only after the invocation channel is closed, so be sure to avoid streaming inputs in
order to prevent starvation or out of memory errors.
- on(InvocationFactory<IN, OUT>) - Static method in class com.github.dm.jrt.core.JRoutine
-
Returns a routine builder based on the specified invocation factory.
In order to prevent undesired leaks, the class of the specified factory must have a
static context.
- onAbort(RoutineException) - Method in class com.github.dm.jrt.core.DelegatingInvocation
-
- onAbort(RoutineException) - Method in class com.github.dm.jrt.invocation.CommandInvocation
-
- onAbort(RoutineException) - Method in class com.github.dm.jrt.invocation.FilterInvocation
-
- onAbort(RoutineException) - Method in interface com.github.dm.jrt.invocation.Invocation
-
Called when the routine execution is aborted.
This method may be called at any time after the invocation initialization.
- onAbort(RoutineException) - Method in class com.github.dm.jrt.invocation.InvocationDecorator
-
- onAbort(RoutineException) - Method in class com.github.dm.jrt.invocation.TemplateInvocation
-
- onComplete() - Method in interface com.github.dm.jrt.channel.OutputConsumer
-
Called when the channel closes after the invocation completes its execution.
- onComplete() - Method in class com.github.dm.jrt.channel.TemplateOutputConsumer
-
- onComplete(Consumer<Void>) - Static method in class com.github.dm.jrt.function.Functions
-
Returns an output consumer builder employing the specified consumer function to handle the
invocation completion.
- onComplete() - Method in class com.github.dm.jrt.function.OutputConsumerBuilder
-
- onDestroy() - Method in class com.github.dm.jrt.core.DelegatingInvocation
-
- onDestroy() - Method in class com.github.dm.jrt.invocation.CommandInvocation
-
- onDestroy() - Method in class com.github.dm.jrt.invocation.FilterInvocation
-
- onDestroy() - Method in interface com.github.dm.jrt.invocation.Invocation
-
Called when the routine invocation is no longer needed.
- onDestroy() - Method in class com.github.dm.jrt.invocation.InvocationDecorator
-
- onDestroy() - Method in class com.github.dm.jrt.invocation.TemplateInvocation
-
- onError(RoutineException) - Method in interface com.github.dm.jrt.channel.OutputConsumer
-
Called when the bounded channel transfer is aborted.
- onError(RoutineException) - Method in class com.github.dm.jrt.channel.TemplateOutputConsumer
-
- onError(Consumer<RoutineException>) - Static method in class com.github.dm.jrt.function.Functions
-
Returns an output consumer builder employing the specified consumer function to handle the
invocation errors.
- onError(RoutineException) - Method in class com.github.dm.jrt.function.OutputConsumerBuilder
-
- onInitialize() - Method in class com.github.dm.jrt.core.DelegatingInvocation
-
- onInitialize() - Method in class com.github.dm.jrt.invocation.CommandInvocation
-
- onInitialize() - Method in class com.github.dm.jrt.invocation.FilterInvocation
-
- onInitialize() - Method in interface com.github.dm.jrt.invocation.Invocation
-
Called when the routine invocation is initialized.
This is always the first method in the invocation lifecycle.
- onInitialize() - Method in class com.github.dm.jrt.invocation.InvocationDecorator
-
- onInitialize() - Method in class com.github.dm.jrt.invocation.TemplateInvocation
-
- onInput(IN, ResultChannel<OUT>) - Method in class com.github.dm.jrt.core.DelegatingInvocation
-
- onInput(Void, ResultChannel<OUT>) - Method in class com.github.dm.jrt.invocation.CommandInvocation
-
- onInput(IN, ResultChannel<OUT>) - Method in class com.github.dm.jrt.invocation.FunctionInvocation
-
- onInput(IN, ResultChannel<OUT>) - Method in interface com.github.dm.jrt.invocation.Invocation
-
Called when an input is passed to the routine.
This method is called once for each input object.
- onInput(IN, ResultChannel<OUT>) - Method in class com.github.dm.jrt.invocation.InvocationDecorator
-
- onInput(DATA, ResultChannel<DATA>) - Method in class com.github.dm.jrt.invocation.PassingInvocation
-
- onInput(IN, ResultChannel<OUT>) - Method in class com.github.dm.jrt.invocation.TemplateInvocation
-
- onOutput(OUT) - Method in interface com.github.dm.jrt.channel.OutputConsumer
-
Called when an output is passed to the channel.
- onOutput(OUT) - Method in class com.github.dm.jrt.channel.TemplateOutputConsumer
-
- onOutput(Consumer<OUT>) - Static method in class com.github.dm.jrt.function.Functions
-
Returns an output consumer builder employing the specified consumer function to handle the
invocation outputs.
- onOutput(OUT) - Method in class com.github.dm.jrt.function.OutputConsumerBuilder
-
- onResult(ResultChannel<OUT>) - Method in class com.github.dm.jrt.core.DelegatingInvocation
-
- onResult(ResultChannel<OUT>) - Method in class com.github.dm.jrt.invocation.FilterInvocation
-
- onResult(ResultChannel<OUT>) - Method in class com.github.dm.jrt.invocation.FunctionInvocation
-
- onResult(ResultChannel<OUT>) - Method in interface com.github.dm.jrt.invocation.Invocation
-
Called when all the inputs has been passed to the routine.
This method is called once in the invocation lifecycle to indicate that the final invocation
results should be passed to the result channel.
- onResult(ResultChannel<OUT>) - Method in class com.github.dm.jrt.invocation.InvocationDecorator
-
- onResult(ResultChannel<OUT>) - Method in class com.github.dm.jrt.invocation.TemplateInvocation
-
- onTerminate() - Method in class com.github.dm.jrt.core.DelegatingInvocation
-
- onTerminate() - Method in class com.github.dm.jrt.invocation.CommandInvocation
-
- onTerminate() - Method in class com.github.dm.jrt.invocation.FilterInvocation
-
- onTerminate() - Method in class com.github.dm.jrt.invocation.FunctionInvocation
-
- onTerminate() - Method in interface com.github.dm.jrt.invocation.Invocation
-
Called when the invocation execution has completed.
- onTerminate() - Method in class com.github.dm.jrt.invocation.InvocationDecorator
-
- onTerminate() - Method in class com.github.dm.jrt.invocation.TemplateInvocation
-
- or(Predicate<? super IN>) - Method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a composed predicate wrapper that represents a short-circuiting logical OR of this
predicate and another.
- orderByCall() - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Tells the channel to sort the passed input data based on the order of the calls to the
pass methods.
- orderByCall() - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Tells the channel to sort the passed input data based on the order of the calls to the
pass methods.
- orderByCall() - Method in interface com.github.dm.jrt.channel.IOChannel
-
Tells the channel to sort the passed input data based on the order of the calls to the
pass methods.
- orderByCall() - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Tells the channel to sort the passed input data based on the order of the calls to the
pass methods.
- orderByCall() - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Tells the channel to sort the passed input data based on the order of the calls to the
pass methods.
- orderByChance() - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Tells the channel to avoid sorting the passed input in any particular order.
- orderByChance() - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Tells the channel to avoid sorting the passed input in any particular order.
- orderByChance() - Method in interface com.github.dm.jrt.channel.IOChannel
-
Tells the channel to avoid sorting the passed input in any particular order.
- orderByChance() - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Tells the channel to avoid sorting the passed input in any particular order.
- orderByChance() - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Tells the channel to avoid sorting the passed input in any particular order.
- orderByDelay() - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Tells the channel to sort the passed input data based on the specific delay.
Note that only the inputs passed with a 0 delay will be delivered in the same order as
they are passed to the channel, while the others will be delivered as soon as the
dedicated runner handles the specific execution.
- orderByDelay() - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Tells the channel to sort the passed input data based on the specific delay.
Note that only the inputs passed with a 0 delay will be delivered in the same order as
they are passed to the channel, while the others will be delivered as soon as the
dedicated runner handles the specific execution.
- orderByDelay() - Method in interface com.github.dm.jrt.channel.IOChannel
-
Tells the channel to sort the passed input data based on the specific delay.
Note that only the inputs passed with a 0 delay will be delivered in the same order as
they are passed to the channel, while the others will be delivered as soon as the
dedicated runner handles the specific execution.
- orderByDelay() - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Tells the channel to sort the passed input data based on the specific delay.
Note that only the inputs passed with a 0 delay will be delivered in the same order as
they are passed to the channel, while the others will be delivered as soon as the
dedicated runner handles the specific execution.
- orderByDelay() - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Tells the channel to sort the passed input data based on the specific delay.
Note that only the inputs passed with a 0 delay will be delivered in the same order as
they are passed to the channel, while the others will be delivered as soon as the
dedicated runner handles the specific execution.
- Output - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate that the result returned by the target object
method must be dispatched in an asynchronous way.
If, on the contrary, this annotation is missing, be aware that the proxy method will block until
the target one completes, even if no result is expected (that is, the method returns a void
result).
- Output.OutputMode - Enum in com.github.dm.jrt.annotation
-
Output transfer mode type.
The mode indicates in which way the result is passed outside.
- OutputConsumer<OUT> - Interface in com.github.dm.jrt.channel
-
Interface defining an output consumer that can be bound to an output channel.
The same instance can be safely bound to different output channels.
- OutputConsumerBuilder<OUT> - Class in com.github.dm.jrt.function
-
Utility class used to build output consumer based on consumer functions.
- OutputDeadlockException - Exception in com.github.dm.jrt.channel
-
Exception indicating a possible deadlock while waiting for room in the output channel buffer.
- OutputDeadlockException(String) - Constructor for exception com.github.dm.jrt.channel.OutputDeadlockException
-
Constructor.
- OutputMaxSize - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the maximum number of data buffered inside
the output channel.
- outputMode - Variable in class com.github.dm.jrt.core.RoutineBuilders.MethodInfo
-
The output transfer mode.
- OutputOrder - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the order of the data read from the output
channel.
- OutputTimeout - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the timeout for an output channel to have
room for additional data.
- OutputTimeoutException - Exception in com.github.dm.jrt.channel
-
Exception indicating that no room in the output channel buffer became available before the
specific timeout elapsed.
- OutputTimeoutException(String) - Constructor for exception com.github.dm.jrt.channel.OutputTimeoutException
-
Constructor.
- parallelCall() - Method in interface com.github.dm.jrt.routine.Routine
-
Short for parallelInvoke().result().
- parallelCall(IN) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for parallelInvoke().pass(input).result().
- parallelCall(IN...) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for parallelInvoke().pass(inputs).result().
- parallelCall(Iterable<? extends IN>) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for parallelInvoke().pass(inputs).result().
- parallelCall(Channel.OutputChannel<? extends IN>) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for parallelInvoke().pass(inputs).result().
- parallelCall() - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- parallelCall(IN) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- parallelCall(IN...) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- parallelCall(Iterable<? extends IN>) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- parallelCall(Channel.OutputChannel<? extends IN>) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- parallelInvoke() - Method in class com.github.dm.jrt.builder.TemplateRoutineBuilder
-
- parallelInvoke() - Method in class com.github.dm.jrt.core.AbstractRoutine
-
- parallelInvoke() - Method in interface com.github.dm.jrt.routine.Routine
-
Invokes the execution of this routine in parallel mode.
- parallelStream(Routine<IN, OUT>) - Static method in class com.github.dm.jrt.core.Channels
-
Creates and returns a new streaming channel by invoking the specified routine in parallel
mode.
- pass(Channel.OutputChannel<? extends IN>) - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Passes the data returned by the specified channel to this one.
- pass(Iterable<? extends IN>) - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Passes the data returned by the specified iterable to this channel.
- pass(IN) - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Passes the specified input to this channel.
- pass(IN...) - Method in interface com.github.dm.jrt.channel.Channel.InputChannel
-
Passes the specified input data to this channel.
- pass(Channel.OutputChannel<? extends IN>) - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Passes the data returned by the specified channel to this one.
- pass(Iterable<? extends IN>) - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Passes the data returned by the specified iterable to this channel.
- pass(IN) - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Passes the specified input to this channel.
- pass(IN...) - Method in interface com.github.dm.jrt.channel.InvocationChannel
-
Passes the specified input data to this channel.
- pass(Channel.OutputChannel<? extends IN>) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Passes the data returned by the specified channel to this one.
- pass(Iterable<? extends IN>) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Passes the data returned by the specified iterable to this channel.
- pass(IN) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Passes the specified input to this channel.
- pass(IN...) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Passes the specified input data to this channel.
- pass(Channel.OutputChannel<? extends OUT>) - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Passes the data returned by the specified channel to this one.
- pass(Iterable<? extends OUT>) - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Passes the data returned by the specified iterable to this channel.
- pass(OUT) - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Passes the specified input to this channel.
- pass(OUT...) - Method in interface com.github.dm.jrt.channel.ResultChannel
-
Passes the specified input data to this channel.
- pass(Channel.OutputChannel<? extends IN>) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Passes the data returned by the specified channel to this one.
- pass(Iterable<? extends IN>) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Passes the data returned by the specified iterable to this channel.
- pass(IN) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Passes the specified input to this channel.
- pass(IN...) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Passes the specified input data to this channel.
- PassingInvocation<DATA> - Class in com.github.dm.jrt.invocation
-
Implementation of an invocation simply passing on the input data.
- passTo(CHANNEL) - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Binds this channel to the specified one.
- passTo(OutputConsumer<? super OUT>) - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Binds this channel to the specified consumer.
- passTo(OutputConsumer<? super OUT>) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Binds this channel to the specified consumer.
- passTo(OutputConsumer<? super OUT>) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Binds this channel to the specified consumer.
- passTo(Channel.InputChannel<? super ByteChannel.ByteBuffer>) - Method in class com.github.dm.jrt.core.ByteChannel
-
Returns the output stream used to write bytes into the specified channel.
- passTo(IOChannel<? super ByteChannel.ByteBuffer, ?>) - Method in class com.github.dm.jrt.core.ByteChannel
-
Returns the output stream used to write bytes into the specified channel.
Note that the channel will be automatically closed as soon as the returned output stream is
closed.
- plus(Time) - Method in class com.github.dm.jrt.util.Time
-
Returns a new instance whose time value is incremented by the specified one.
Note that the unit of the returned time will match the one with the highest precision.
- plus(Time) - Method in class com.github.dm.jrt.util.TimeDuration
-
Returns a new instance whose time value is incremented by the specified one.
Note that the unit of the returned time will match the one with the highest precision.
Note also that, if the resulting time is negative, the value will be clipped to 0.
- poolRunner() - Static method in class com.github.dm.jrt.runner.Runners
-
Returns a runner employing an optimum number of threads.
- poolRunner(int) - Static method in class com.github.dm.jrt.runner.Runners
-
Returns a runner employing the specified number of threads.
- positive() - Static method in class com.github.dm.jrt.function.Functions
-
Returns a predicate wrapper always returning the true.
The returned object will support concatenation and comparison.
- positive() - Static method in class com.github.dm.jrt.function.PredicateWrapper
-
Returns a predicate wrapper always returning the true.
The returned object will support concatenation and comparison.
- Predicate<IN> - Interface in com.github.dm.jrt.function
-
Interface representing a predicate (boolean-valued function) of one argument.
- predicateFilter(Predicate<? super IN>) - Static method in class com.github.dm.jrt.function.Functions
-
Builds and returns a new filter invocation based on the specified predicate instance.
Only the inputs which satisfies the predicate will be passed on, while the others will be
filtered out.
In order to prevent undesired leaks, the class of the specified predicate must have a static
context.
- PredicateWrapper<IN> - Class in com.github.dm.jrt.function
-
Class wrapping a predicate instance.
- printStackTrace(Throwable) - Static method in class com.github.dm.jrt.log.TemplateLog
-
Prints the stack trace of the specified throwable into a string.
- Priority - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the priority of the specific method
invocation.
- PriorityRunner - Class in com.github.dm.jrt.runner
-
Class providing ordering of executions based on priority.
Each class instance wraps a supporting runner and then provides different runner instances, each
one enqueuing executions with a specific priority.
- priorityRunner(Runner) - Static method in class com.github.dm.jrt.runner.Runners
-
Returns a runner providing ordering of executions based on priority.
- proxies() - Method in interface com.github.dm.jrt.builder.ProxyConfigurableBuilder
-
Gets the proxy configuration builder related to the routine builder instance.
The configuration options not supported by the routine builder implementation might be
ignored.
- ProxyConfigurableBuilder<TYPE> - Interface in com.github.dm.jrt.builder
-
Interface defining a configurable builder of proxy routines.
- ProxyConfiguration - Class in com.github.dm.jrt.builder
-
Class storing the proxy configuration.
- ProxyConfiguration.Builder<TYPE> - Class in com.github.dm.jrt.builder
-
Builder of proxy configurations.
- ProxyConfiguration.Builder(ProxyConfiguration.Configurable<? extends TYPE>) - Constructor for class com.github.dm.jrt.builder.ProxyConfiguration.Builder
-
Constructor.
- ProxyConfiguration.Builder(ProxyConfiguration.Configurable<? extends TYPE>, ProxyConfiguration) - Constructor for class com.github.dm.jrt.builder.ProxyConfiguration.Builder
-
Constructor.
- ProxyConfiguration.Configurable<TYPE> - Interface in com.github.dm.jrt.builder
-
Interface defining a configurable object.
- purge() - Method in class com.github.dm.jrt.core.AbstractRoutine
-
- purge() - Method in interface com.github.dm.jrt.routine.Routine
-
Makes the routine destroy all the cached invocation instances.
- purge() - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- put(K, V) - Method in class com.github.dm.jrt.util.WeakIdentityHashMap
-
- putAll(Map<? extends K, ? extends V>) - Method in class com.github.dm.jrt.util.WeakIdentityHashMap
-
- scheduledRunner(ScheduledExecutorService) - Static method in class com.github.dm.jrt.runner.Runners
-
Returns a runner employing the specified executor service.
- second() - Static method in class com.github.dm.jrt.function.BiFunctionWrapper
-
Returns a bi-function wrapper just returning the second passed argument.
The returned object will support concatenation and comparison.
- second() - Static method in class com.github.dm.jrt.function.Functions
-
Returns a bi-function wrapper just returning the second passed argument.
The returned object will support concatenation and comparison.
- seconds(long) - Static method in class com.github.dm.jrt.util.Time
-
Creates and returns an object representing the specified number of seconds.
- seconds(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the specified number of seconds.
- SECONDS_IN_DAY - Static variable in class com.github.dm.jrt.util.Time
-
The number of seconds in a day.
- SECONDS_IN_HOUR - Static variable in class com.github.dm.jrt.util.Time
-
The number of seconds in an hour.
- SECONDS_IN_MINUTE - Static variable in class com.github.dm.jrt.util.Time
-
The number of seconds in a minute.
- secondsTime() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in seconds.
- secondsTime() - Method in class com.github.dm.jrt.util.TimeDuration
-
Converts this duration in seconds.
- select(Channel.InputChannel<? super Channels.Selectable<DATA>>, int) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a new channel transforming the input data into selectable ones.
Note that the returned channel must be explicitly closed in order to ensure the
completion of the invocation lifecycle.
- select(Channel.InputChannel<? super Channels.Selectable<DATA>>, Iterable<Integer>) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a map of input channels accepting the input data identified by the specified indexes.
- select(Channel.InputChannel<? super Channels.Selectable<DATA>>, int...) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a map of input channels accepting the input data identified by the specified indexes.
- select(int, int, Channel.InputChannel<? super Channels.Selectable<DATA>>) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a map of input channels accepting the input data identified by the specified indexes.
- select(int, int, Channel.OutputChannel<? extends Channels.Selectable<? extends OUT>>) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a map of output channels returning the output data filtered by the specified indexes.
- select(Channel.OutputChannel<? extends Channels.Selectable<? extends OUT>>) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a selectable output filtering the data coming from the specified channel.
Note that the channel will be bound as a result of the call, the method, though, can be
safely called more than once for the same selectable channel.
- select(Channel.OutputChannel<? extends Channels.Selectable<? extends OUT>>, int...) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a map of output channels returning the outputs filtered by the specified indexes.
- select(Channel.OutputChannel<? extends Channels.Selectable<? extends OUT>>, Iterable<Integer>) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a map of output channels returning the output data filtered by the specified indexes.
- set() - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the configuration and returns the configurable object.
- set() - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the configuration and returns the configurable object.
- set() - Method in class com.github.dm.jrt.builder.ProxyConfiguration.Builder
-
Sets the configuration and returns the configurable object.
- setConfiguration(ChannelConfiguration) - Method in interface com.github.dm.jrt.builder.ChannelConfiguration.Configurable
-
Sets the specified configuration and returns the configurable instance.
- setConfiguration(InvocationConfiguration) - Method in interface com.github.dm.jrt.builder.InvocationConfiguration.Configurable
-
Sets the specified configuration and returns the configurable instance.
- setConfiguration(ProxyConfiguration) - Method in interface com.github.dm.jrt.builder.ProxyConfiguration.Configurable
-
Sets the specified configuration and returns the configurable instance.
- setConfiguration(InvocationConfiguration) - Method in class com.github.dm.jrt.builder.TemplateRoutineBuilder
-
- setDefaultLevel(Log.Level) - Static method in class com.github.dm.jrt.log.Logger
-
Sets the default log level.
- setDefaultLog(Log) - Static method in class com.github.dm.jrt.log.Logger
-
Sets the default log instance.
- SharedFields - Annotation Type in com.github.dm.jrt.annotation
-
Through this annotation it is possible to indicate the fields accessed by the target object
method.
- sharedRunner() - Static method in class com.github.dm.jrt.runner.Runners
-
Returns the shared instance of a thread pool asynchronous runner.
- sink() - Static method in class com.github.dm.jrt.function.ConsumerWrapper
-
Returns a consumer wrapper just discarding the passed inputs.
The returned object will support concatenation and comparison.
- sink() - Static method in class com.github.dm.jrt.function.Functions
-
Returns a consumer wrapper just discarding the passed inputs.
The returned object will support concatenation and comparison.
- size() - Method in class com.github.dm.jrt.util.WeakIdentityHashMap
-
- skip(int) - Method in interface com.github.dm.jrt.channel.Channel.OutputChannel
-
Skips the first count available results by waiting at the maximum for the set
timeout.
- skip(int) - Method in interface com.github.dm.jrt.channel.IOChannel
-
Skips the first count available results by waiting at the maximum for the set
timeout.
- skip(int) - Method in interface com.github.dm.jrt.channel.StreamingChannel
-
Skips the first count available results by waiting at the maximum for the set
timeout.
- skip(long) - Method in class com.github.dm.jrt.core.ByteChannel.BufferInputStream
-
- sleep() - Method in class com.github.dm.jrt.util.TimeDuration
-
- sleepAtLeast() - Method in class com.github.dm.jrt.util.TimeDuration
-
Performs a
Thread.sleep(long, int) using this duration as timeout, ensuring
that the sleep time is respected even if spurious wake ups happen in the while.
- sleepSinceMillis(long) - Method in class com.github.dm.jrt.util.TimeDuration
-
Performs a
Thread.sleep(long, int) as if started from the specified system
time in milliseconds, by using this duration as timeout.
- sleepSinceNanos(long) - Method in class com.github.dm.jrt.util.TimeDuration
-
Performs a
Thread.sleep(long, int) as if started from the specified high
precision system time in nanoseconds, by using this duration as timeout.
- startRoutine() - Static method in class com.github.dm.jrt.function.JFunctional
-
Returns a functional routine builder.
- stream(IOChannel<IN, ?>, Channel.OutputChannel<OUT>) - Static method in class com.github.dm.jrt.core.Channels
-
Creates and returns a new streaming channel backed by the specified input and output.
Note that it is up to the caller ensure that the specified input and output channels are
actually connected.
- StreamingChannel<IN,OUT> - Interface in com.github.dm.jrt.channel
-
Interface defining a streaming channel, that is, an I/O channel in which data are processed by
one or more routine invocations.
- subContextLogger(Object) - Method in class com.github.dm.jrt.log.Logger
-
Creates a new logger with the same log instance and log level, but adding the specified
context to the list of contexts.
- Supplier<OUT> - Interface in com.github.dm.jrt.function
-
Interface representing a supplier of results.
- supplierCommand(Supplier<OUT>) - Static method in class com.github.dm.jrt.function.Functions
-
Builds and returns a new command invocation based on the specified supplier instance.
In order to prevent undesired leaks, the class of the specified supplier must have a static
context.
- supplierFactory(Supplier<? extends Invocation<IN, OUT>>) - Static method in class com.github.dm.jrt.function.Functions
-
Builds and returns a new invocation factory based on the specified supplier instance.
In order to prevent undesired leaks, the class of the specified supplier must have a static
context.
- SupplierWrapper<OUT> - Class in com.github.dm.jrt.function
-
Class wrapping a supplier instance.
- syncCall() - Method in interface com.github.dm.jrt.routine.Routine
-
Short for syncInvoke().result().
- syncCall(IN) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for syncInvoke().pass(input).result().
- syncCall(IN...) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for syncInvoke().pass(inputs).result().
- syncCall(Iterable<? extends IN>) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for syncInvoke().pass(inputs).result().
- syncCall(Channel.OutputChannel<? extends IN>) - Method in interface com.github.dm.jrt.routine.Routine
-
Short for syncInvoke().pass(inputs).result().
- syncCall() - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- syncCall(IN) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- syncCall(IN...) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- syncCall(Iterable<? extends IN>) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- syncCall(Channel.OutputChannel<? extends IN>) - Method in class com.github.dm.jrt.routine.TemplateRoutine
-
- syncInvoke() - Method in class com.github.dm.jrt.builder.TemplateRoutineBuilder
-
- syncInvoke() - Method in class com.github.dm.jrt.core.AbstractRoutine
-
- syncInvoke() - Method in interface com.github.dm.jrt.routine.Routine
-
Invokes the execution of this routine in synchronous mode.
- syncRunner() - Static method in class com.github.dm.jrt.runner.Runners
-
Returns the shared instance of a synchronous runner.
- syncStream(Routine<IN, OUT>) - Static method in class com.github.dm.jrt.core.Channels
-
Creates and returns a new streaming channel by invoking the specified routine in synchronous
mode.
- systemLog() - Static method in class com.github.dm.jrt.log.Logs
-
Returns the system output log shared instance.
- SystemLog - Class in com.github.dm.jrt.log
-
Simple log implementation writing messages to the system output.
- SystemLog() - Constructor for class com.github.dm.jrt.log.SystemLog
-
- TemplateExecution - Class in com.github.dm.jrt.runner
-
Empty abstract implementation of an execution.
- TemplateExecution() - Constructor for class com.github.dm.jrt.runner.TemplateExecution
-
- TemplateInvocation<IN,OUT> - Class in com.github.dm.jrt.invocation
-
Empty abstract implementation of a routine invocation.
- TemplateInvocation() - Constructor for class com.github.dm.jrt.invocation.TemplateInvocation
-
- TemplateLog - Class in com.github.dm.jrt.log
-
Abstract implementation of a log.
- TemplateLog() - Constructor for class com.github.dm.jrt.log.TemplateLog
-
- TemplateOutputConsumer<OUT> - Class in com.github.dm.jrt.channel
-
Empty abstract implementation of an output consumer.
- TemplateOutputConsumer() - Constructor for class com.github.dm.jrt.channel.TemplateOutputConsumer
-
- TemplateRoutine<IN,OUT> - Class in com.github.dm.jrt.routine
-
Empty abstract implementation of a routine.
- TemplateRoutine() - Constructor for class com.github.dm.jrt.routine.TemplateRoutine
-
- TemplateRoutineBuilder<IN,OUT> - Class in com.github.dm.jrt.builder
-
Empty abstract implementation of a routine builder.
- TemplateRoutineBuilder() - Constructor for class com.github.dm.jrt.builder.TemplateRoutineBuilder
-
- test(IN) - Method in interface com.github.dm.jrt.function.Predicate
-
Evaluates this predicate on the given argument.
- test(IN) - Method in class com.github.dm.jrt.function.PredicateWrapper
-
- thenAsyncAccumulate(BiFunction<? super OUT, ? super OUT, ? extends OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified accumulate function to this one.
- thenAsyncAccumulate(BiFunction<? super DATA, ? super DATA, DATA>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified accumulate function.
- thenAsyncFilter(Predicate<? super OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified predicate to this one.
The output will be filtered according to the result returned by the predicate.
- thenAsyncFilter(Predicate<? super DATA>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified predicate.
The output will be filtered according to the result returned by the predicate.
- thenAsyncMap(BiConsumer<? super OUT, ? super ResultChannel<AFTER>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified consumer to this one.
- thenAsyncMap(Function<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified function to this one.
- thenAsyncMap(InvocationFactory<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified factory to this one.
- thenAsyncMap(Routine<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified instance to this one.
- thenAsyncMap(BiConsumer<? super IN, ? super ResultChannel<OUT>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified consumer.
- thenAsyncMap(Function<? super IN, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified function.
- thenAsyncMap(InvocationFactory<IN, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified factory.
- thenAsyncMap(Routine<IN, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified instance.
- thenAsyncReduce(BiConsumer<? super List<? extends OUT>, ? super ResultChannel<AFTER>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified reducing consumer to this one.
The outputs will be reduced by applying the function, only when the routine invocation
completes.
- thenAsyncReduce(Function<? super List<? extends OUT>, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified reducing function to this one.
The outputs will be reduced by applying the function, only when the routine invocation
completes.
- thenAsyncReduce(BiConsumer<? super List<? extends IN>, ? super ResultChannel<OUT>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified reducing consumer.
The outputs will be reduced by applying the function, only when the routine invocation
completes.
- thenAsyncReduce(Function<? super List<? extends IN>, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified reducing function.
The outputs will be reduced by applying the function, only when the routine invocation
completes.
- thenFlatLift(Function<? super FunctionalRoutine<IN, OUT>, ? extends FunctionalRoutine<BEFORE, AFTER>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Lifts this functional routine by applying the specified function.
- thenLift(Function<? super FunctionalRoutine<IN, OUT>, ? extends Routine<BEFORE, AFTER>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Lifts this functional routine by applying the specified function.
- thenOnComplete(Consumer<Void>) - Method in class com.github.dm.jrt.function.OutputConsumerBuilder
-
Returns a new output consumer builder employing also the specified consumer function to
handle the invocation completion.
- thenOnError(Consumer<? super RoutineException>) - Method in class com.github.dm.jrt.function.OutputConsumerBuilder
-
Returns a new output consumer builder employing also the specified consumer function to
handle the invocation errors.
- thenOnOutput(Consumer<? super OUT>) - Method in class com.github.dm.jrt.function.OutputConsumerBuilder
-
Returns a new output consumer builder employing also the specified consumer function to
handle the invocation outputs.
- thenParallelFilter(Predicate<? super OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified predicate to this one.
The output will be filtered according to the result returned by the predicate.
- thenParallelFilter(Predicate<? super DATA>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified predicate.
The output will be filtered according to the result returned by the predicate.
- thenParallelMap(BiConsumer<? super OUT, ? super ResultChannel<AFTER>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified consumer to this one.
- thenParallelMap(Function<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified function to this one.
- thenParallelMap(InvocationFactory<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified factory to this one.
- thenParallelMap(Routine<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified instance to this one.
- thenParallelMap(BiConsumer<? super IN, ? super ResultChannel<OUT>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified consumer.
- thenParallelMap(Function<? super IN, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified function.
- thenParallelMap(InvocationFactory<IN, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified factory.
- thenParallelMap(Routine<IN, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified instance.
- thenSyncAccumulate(BiFunction<? super OUT, ? super OUT, ? extends OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified accumulate function to this one.
- thenSyncAccumulate(BiFunction<? super DATA, ? super DATA, DATA>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified accumulate function.
- thenSyncFilter(Predicate<? super OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified predicate to this one.
The output will be filtered according to the result returned by the predicate.
- thenSyncFilter(Predicate<? super DATA>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified predicate.
The output will be filtered according to the result returned by the predicate.
- thenSyncMap(BiConsumer<? super OUT, ? super ResultChannel<AFTER>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified consumer to this one.
- thenSyncMap(Function<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified function to this one.
- thenSyncMap(InvocationFactory<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified factory to this one.
- thenSyncMap(Routine<? super OUT, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified instance to this one.
- thenSyncMap(BiConsumer<? super IN, ? super ResultChannel<OUT>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified consumer.
- thenSyncMap(Function<? super IN, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified function.
- thenSyncMap(InvocationFactory<IN, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified factory.
- thenSyncMap(Routine<IN, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified instance.
- thenSyncReduce(BiConsumer<? super List<? extends OUT>, ? super ResultChannel<AFTER>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified reducing consumer to this one.
The outputs will be reduced by applying the function, only when the routine invocation
completes.
- thenSyncReduce(Function<? super List<? extends OUT>, AFTER>) - Method in interface com.github.dm.jrt.function.FunctionalRoutine
-
Concatenates a functional routine based on the specified reducing function to this one.
The outputs will be reduced by applying the function, only when the routine invocation
completes.
- thenSyncReduce(BiConsumer<? super List<? extends IN>, ? super ResultChannel<OUT>>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified reducing consumer.
The outputs will be reduced by applying the function, only when the routine invocation
completes.
- thenSyncReduce(Function<? super List<? extends IN>, OUT>) - Method in interface com.github.dm.jrt.function.FunctionalRoutineBuilder
-
Concatenates a functional routine based on the specified reducing function.
The outputs will be reduced by applying the function, only when the routine invocation
completes.
- throttlingRunner(Runner, int) - Static method in class com.github.dm.jrt.runner.Runners
-
Returns a runner throttling the number of running executions so to keep it under the
specified limit.
- throwIfInterrupt(Throwable) - Static method in exception com.github.dm.jrt.invocation.InvocationInterruptedException
-
Checks if the specified throwable is not an interrupted exception.
- Time - Class in com.github.dm.jrt.util
-
Utility class for handling time in different time units.
- time - Variable in class com.github.dm.jrt.util.Time
-
The time value.
- TimeDuration - Class in com.github.dm.jrt.util
-
Utility class for handling a time duration in different time units.
- TimeDuration.Check - Interface in com.github.dm.jrt.util
-
Interface defining a check to be performed.
- TimeoutException - Exception in com.github.dm.jrt.channel
-
Exception indicating that a timeout occurred.
- TimeoutException(String) - Constructor for exception com.github.dm.jrt.channel.TimeoutException
-
Constructor.
- timeSinceMillis(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the time range between now and a time in the past.
- timeSinceNanos(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the time range between now and a time in the past.
- timeUntilMillis(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the time range between now and a time in the
future.
If the specified is in the past, a ZERO duration will be returned.
- timeUntilNanos(long) - Static method in class com.github.dm.jrt.util.TimeDuration
-
Creates and returns an object representing the time range between now and a time in the
future.
If the specified is in the past, a ZERO duration will be returned.
- to(TimeUnit) - Method in class com.github.dm.jrt.util.Time
-
Converts this time in the specified unit.
- toDays() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in number of days.
- toHours() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in number of hours.
- toInputChannelConfiguration() - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Converts this configuration into an invocation one by applying the matching options to the
invocation input channel.
- toInvocationConfiguration() - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Converts this configuration into an invocation one by mapping the matching options.
- tokenOf(Class<TYPE>) - Static method in class com.github.dm.jrt.util.ClassToken
-
Creates a new token from the specified raw class.
- tokenOf(TYPE) - Static method in class com.github.dm.jrt.util.ClassToken
-
Creates a new token from the class of the specified object.
- toMicros() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in number of microseconds.
- toMillis() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in number of milliseconds.
- toMinutes() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in number of minutes.
- toNanos() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in number of nanoseconds.
- toOutputChannelConfiguration() - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
Converts this configuration into an invocation one by applying the matching options to the
invocation output channel.
- toSeconds() - Method in class com.github.dm.jrt.util.Time
-
Converts this time in number of seconds.
- toSelectable(Channel.InputChannel<? super IN>, int) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a new selectable channel feeding the specified one.
Each output will be filtered based on the specified index.
Note that the returned channel must be explicitly closed in order to ensure the
completion of the invocation lifecycle.
- toSelectable(Channel.OutputChannel<? extends OUT>, int) - Static method in class com.github.dm.jrt.core.Channels
-
Returns a new channel making the specified one selectable.
Each output will be passed along unchanged.
Note that the channel will be bound as a result of the call.
- toString() - Method in class com.github.dm.jrt.builder.ChannelConfiguration
-
- toString() - Method in class com.github.dm.jrt.builder.InvocationConfiguration
-
- toString() - Method in class com.github.dm.jrt.builder.ProxyConfiguration
-
- toString() - Method in class com.github.dm.jrt.core.Channels.Selectable
-
- toString() - Method in class com.github.dm.jrt.util.Time
-
- wait(Object) - Method in class com.github.dm.jrt.util.TimeDuration
-
- waitSinceMillis(Object, long) - Method in class com.github.dm.jrt.util.TimeDuration
-
Performs an
Object.wait() as if started from the specified system time in
milliseconds, by using this duration as timeout.
- waitSinceNanos(Object, long) - Method in class com.github.dm.jrt.util.TimeDuration
-
Performs an
Object.wait() as if started from the specified high precision
system time in nanoseconds, by using this duration as timeout.
- waitTrue(Object, TimeDuration.Check) - Method in class com.github.dm.jrt.util.TimeDuration
-
Waits for the specified check to be true by performing an
Object.wait() and
using this duration as timeout.
- WeakIdentityHashMap<K,V> - Class in com.github.dm.jrt.util
-
- WeakIdentityHashMap() - Constructor for class com.github.dm.jrt.util.WeakIdentityHashMap
-
Constructor.
- WeakIdentityHashMap(Map<? extends K, ? extends V>) - Constructor for class com.github.dm.jrt.util.WeakIdentityHashMap
-
Constructor.
- WeakIdentityHashMap(int) - Constructor for class com.github.dm.jrt.util.WeakIdentityHashMap
-
Constructor.
- WeakIdentityHashMap(int, float) - Constructor for class com.github.dm.jrt.util.WeakIdentityHashMap
-
Constructor.
- with(ChannelConfiguration) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Applies the specified configuration to this builder.
- with(InvocationConfiguration) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Applies the specified configuration to this builder.
- with(ProxyConfiguration) - Method in class com.github.dm.jrt.builder.ProxyConfiguration.Builder
-
Applies the specified configuration to this builder.
- withAsyncRunner(Runner) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the asynchronous runner instance.
- withChannelMaxSize(int) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the maximum number of data that the channel can retain before they are consumed.
- withChannelOrder(InvocationConfiguration.OrderType) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the order in which data are collected from the channel.
- withChannelTimeout(long, TimeUnit) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the timeout for the channel to have room for additional data.
- withChannelTimeout(TimeDuration) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the timeout for the channel to have room for additional data.
- withCoreInstances(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the number of invocation instances, which represents the core pool of reusable
invocations.
- withInputMaxSize(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the maximum number of data that the input channel can retain before they are
consumed.
- withInputOrder(InvocationConfiguration.OrderType) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the order in which input data are collected from the input channel.
- withInputTimeout(long, TimeUnit) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the timeout for an input channel to have room for additional data.
- withInputTimeout(TimeDuration) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the timeout for an input channel to have room for additional data.
- withLog(Log) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the log instance.
- withLog(Log) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the log instance.
- withLogLevel(Log.Level) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the log level.
- withLogLevel(Log.Level) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the log level.
- withMaxInstances(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the max number of concurrently running invocation instances.
- withOutputMaxSize(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the maximum number of data that the result channel can retain before they are
consumed.
- withOutputOrder(InvocationConfiguration.OrderType) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the order in which output data are collected from the result channel.
- withOutputTimeout(long, TimeUnit) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the timeout for a result channel to have room for additional data.
- withOutputTimeout(TimeDuration) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the timeout for a result channel to have room for additional data.
- withPriority(int) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the invocation priority.
- withReadTimeout(long, TimeUnit) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the timeout for the channel instance to produce a readable output.
Note that this is just the initial configuration, since the output timeout can be
dynamically changed through the dedicated methods.
- withReadTimeout(TimeDuration) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the timeout for the channel instance to produce a readable output.
- withReadTimeout(long, TimeUnit) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the timeout for an invocation instance to produce a readable result.
Note that this is just the initial configuration of the invocation, since the output
timeout can be dynamically changed through the dedicated methods.
- withReadTimeout(TimeDuration) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the timeout for an invocation instance to produce a readable result.
- withReadTimeoutAction(InvocationConfiguration.TimeoutActionType) - Method in class com.github.dm.jrt.builder.ChannelConfiguration.Builder
-
Sets the action to be taken if the timeout elapses before an output can be read from the
output channel.
- withReadTimeoutAction(InvocationConfiguration.TimeoutActionType) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the action to be taken if the timeout elapses before a result can be read from the
output channel.
- withRunner(Runner) - Method in class com.github.dm.jrt.builder.InvocationConfiguration.Builder
-
Sets the asynchronous runner instance.
- withSharedFields() - Method in class com.github.dm.jrt.builder.ProxyConfiguration.Builder
-
Sets the shared field names to empty, that is, no field is shared.
- withSharedFields(String...) - Method in class com.github.dm.jrt.builder.ProxyConfiguration.Builder
-
Sets the shared field names.
- withSharedFields(List<String>) - Method in class com.github.dm.jrt.builder.ProxyConfiguration.Builder
-
Sets the shared field names.
- wrapBiConsumer(BiConsumer<IN1, IN2>) - Static method in class com.github.dm.jrt.function.Functions
-
Wraps the specified bi-consumer instance so to provide additional features.
The returned object will support concatenation and comparison.
- wrapBiFunction(BiFunction<IN1, IN2, OUT>) - Static method in class com.github.dm.jrt.function.Functions
-
Wraps the specified bi-function instance so to provide additional features.
The returned object will support concatenation and comparison.
- wrapConsumer(Consumer<IN>) - Static method in class com.github.dm.jrt.function.Functions
-
Wraps the specified consumer instance so to provide additional features.
The returned object will support concatenation and comparison.
- wrapFunction(Function<IN, OUT>) - Static method in class com.github.dm.jrt.function.Functions
-
Wraps the specified function instance so to provide additional features.
The returned object will support concatenation and comparison.
- wrapIfNeeded(Throwable) - Static method in exception com.github.dm.jrt.channel.AbortException
-
Wraps the specified throwable only if it is not an instance of
RoutineException.
- wrapIfNeeded(Throwable) - Static method in exception com.github.dm.jrt.invocation.InvocationException
-
Wraps the specified throwable only if it is not an instance of
RoutineException.
- wrapPredicate(Predicate<IN>) - Static method in class com.github.dm.jrt.function.Functions
-
Wraps the specified predicate instance so to provide additional features.
The returned object will support concatenation and comparison.
- wrapSupplier(Supplier<OUT>) - Static method in class com.github.dm.jrt.function.Functions
-
Wraps the specified supplier instance so to provide additional features.
The returned object will support concatenation and comparison.
- write(InputStream) - Method in class com.github.dm.jrt.core.ByteChannel.BufferOutputStream
-
Writes some bytes into the output stream by reading them from the specified input stream.
- writeAll(InputStream) - Method in class com.github.dm.jrt.core.ByteChannel.BufferOutputStream
-
Writes all the returned bytes into the output stream by reading them from the specified
input stream.
Calling this method has the same effect as calling:
- wrn(List<Object>, String, Throwable) - Method in interface com.github.dm.jrt.log.Log
-
Logs a warning message.
- wrn(String) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(String, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(String, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(String, Object, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(String, Object, Object, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(String, Object...) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(Throwable) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning exception.
- wrn(Throwable, String) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(Throwable, String, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(Throwable, String, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(Throwable, String, Object, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(Throwable, String, Object, Object, Object, Object) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(Throwable, String, Object...) - Method in class com.github.dm.jrt.log.Logger
-
Logs a warning message.
- wrn(List<Object>, String, Throwable) - Method in class com.github.dm.jrt.log.TemplateLog
-