- cacheByID(AsyncDataQuery<? super QueryArgType, ? extends DataType>, ReferenceType, ObjectCache) - Static method in class org.jtrim2.concurrent.query.AsyncQueries
-
Creates and returns an AsyncDataQuery which creates
AsyncDataLink instances caching their results and caches
AsyncDataLink instances based on a unique ID provided to the
query with the input argument.
- cacheByID(AsyncDataQuery<? super QueryArgType, ? extends DataType>, ReferenceType, ObjectCache, int) - Static method in class org.jtrim2.concurrent.query.AsyncQueries
-
Creates and returns an AsyncDataQuery which creates
AsyncDataLink instances caching their results and caches
AsyncDataLink instances based on a unique ID provided to the
query with the input argument.
- CachedAsyncDataQuery<QueryArgType,DataType> - Class in org.jtrim2.concurrent.query
-
Defines an AsyncDataQuery which caches AsyncDataLink
instances based on the input of the query.
- CachedByIDAsyncDataQuery<QueryArgType,DataType> - Class in org.jtrim2.concurrent.query
-
Defines an AsyncDataQuery which creates AsyncDataLink
instances caching their results and caches AsyncDataLink instances
based on a unique ID provided to the query with the input argument.
- CachedDataRequest<QueryArgType> - Class in org.jtrim2.concurrent.query
-
Defines a request for a data which should be cached if possible.
- CachedDataRequest(QueryArgType) - Constructor for class org.jtrim2.concurrent.query.CachedDataRequest
-
Creates and initializes the CachedDataRequest with the given
properties.
- CachedDataRequest(QueryArgType, ReferenceType) - Constructor for class org.jtrim2.concurrent.query.CachedDataRequest
-
Creates and initializes the CachedDataRequest with the given
properties.
- CachedDataRequest(QueryArgType, ReferenceType, ObjectCache) - Constructor for class org.jtrim2.concurrent.query.CachedDataRequest
-
Creates and initializes the CachedDataRequest with the given
properties.
- CachedDataRequest(QueryArgType, ReferenceType, ObjectCache, long, TimeUnit) - Constructor for class org.jtrim2.concurrent.query.CachedDataRequest
-
Creates and initializes the CachedDataRequest with the given
properties.
- CachedLinkContainer<CacheRefType> - Interface in org.jtrim2.concurrent.query
-
- CachedLinkRequest<QueryArgType> - Class in org.jtrim2.concurrent.query
-
Defines a request for a data when the
AsyncDataLink providing should
be cached.
- CachedLinkRequest(QueryArgType) - Constructor for class org.jtrim2.concurrent.query.CachedLinkRequest
-
Creates and initializes the
CachedLinkRequest with the given
input for the query and one hour as the
cache expire timeout value.
- CachedLinkRequest(QueryArgType, long, TimeUnit) - Constructor for class org.jtrim2.concurrent.query.CachedLinkRequest
-
Creates and initializes the CachedLinkRequest with the given
input for the query and the cache expire timeout value.
- cacheLinks(AsyncDataQuery<? super QueryArgType, DataType>) - Static method in class org.jtrim2.concurrent.query.AsyncQueries
-
Creates and returns an AsyncDataQuery which caches
AsyncDataLink instances based on the input of the query.
- cacheLinks(AsyncDataQuery<? super QueryArgType, DataType>, int) - Static method in class org.jtrim2.concurrent.query.AsyncQueries
-
Creates and returns an AsyncDataQuery which caches
AsyncDataLink instances based on the input of the query.
- cacheResult(AsyncDataLink<? extends DataType>, ReferenceType, ObjectCache) - Static method in class org.jtrim2.concurrent.query.AsyncLinks
-
Returns an AsyncDataLink which will return the same datas as the
specified AsyncDataLink but will cache its results.
- cacheResult(AsyncDataLink<? extends DataType>, ReferenceType, ObjectCache, long, TimeUnit) - Static method in class org.jtrim2.concurrent.query.AsyncLinks
-
Returns an AsyncDataLink which will return the same datas as the
specified AsyncDataLink but will cache its results.
- cacheResults(AsyncDataQuery<? super QueryArgType, ? extends DataType>) - Static method in class org.jtrim2.concurrent.query.AsyncQueries
-
Creates and returns an AsyncDataQuery which creates
AsyncDataLink instances caching their results.
- CANCELED - Static variable in class org.jtrim2.concurrent.query.AsyncReport
-
A canceled but error free data transfer.
- ChannelOpener<ChannelType extends Channel> - Interface in org.jtrim2.concurrent.query.io
-
Defines an interface to open a new
Channel for processing.
- ChannelProcessor<DataType,ChannelType extends Channel> - Interface in org.jtrim2.concurrent.query.io
-
Defines an interface for processing the data of an open
Channel and
to forward the processed data to an
AsyncDataListener.
- ChannelProcessor.StateListener - Interface in org.jtrim2.concurrent.query.io
-
The interface through which the
ChannelProcessor may set the
current state of progress of the processing of the channel.
- clearCache() - Method in class org.jtrim2.concurrent.query.CachedAsyncDataQuery
-
Removes every AsyncDataLink instances from the cache currently
cached by this query.
- clearCache() - Method in class org.jtrim2.concurrent.query.CachedByIDAsyncDataQuery
-
Removes every AsyncDataLink instances from the cache currently
cached by this query.
- clearCache() - Method in interface org.jtrim2.concurrent.query.CachedLinkContainer
-
Removes every AsyncDataLink instances from the cache currently
cached by this query.
- collectionToString(Collection<?>) - Static method in class org.jtrim2.concurrent.query.AsyncFormatHelper
-
Converts the specified Collection to a string.
- controlData(Object) - Method in interface org.jtrim2.concurrent.query.AsyncDataController
-
Notifies the AsyncDataLink providing the data, that the data
should be provided in a specific way.
- controlData(Object) - Method in class org.jtrim2.concurrent.query.DelegatedAsyncDataController
-
Notifies the AsyncDataLink providing the data, that the data
should be provided in a specific way.
- controlData(Object) - Method in enum org.jtrim2.concurrent.query.DoNothingDataController
-
Does nothing and returns immediately to the caller.
- controlData(Object) - Method in class org.jtrim2.concurrent.query.InitLaterDataController
-
Notifies the AsyncDataLink providing the data, that the data
should be provided in a specific way.
- controlData(Object) - Method in class org.jtrim2.concurrent.query.SimpleDataController
-
This method does nothing and returns immediately to the caller.
- convertData(OldDataType) - Method in interface org.jtrim2.concurrent.query.DataConverter
-
Converts the data from one type to another as defined by the
implementation.
- convertGradually(InputType, List<? extends AsyncDataConverter<InputType, ResultType>>) - Static method in class org.jtrim2.concurrent.query.AsyncLinks
-
Creates a new AsyncDataLink which will return the given input
data transformed by the specified AsyncDataConverter, assuming
that subsequent converters in the list provide more and more accurate
conversion.
- convertResultAsync(AsyncDataLink<? extends OldType>, AsyncDataQuery<? super OldType, ? extends NewType>) - Static method in class org.jtrim2.concurrent.query.AsyncLinks
-
Creates an
AsyncDataLink which will provide the same data
as the specified
AsyncDataLink but applies a conversion on the
provided data defined by an
AsyncDataQuery.
- convertResultsAsync(AsyncDataQuery<? super QueryArgType, ? extends OldDataType>, AsyncDataQuery<? super OldDataType, ? extends NewDataType>) - Static method in class org.jtrim2.concurrent.query.AsyncQueries
-
Creates an
AsyncDataQuery which will provide the same data
as the specified
AsyncDataQuery but applies a conversion on the
provided data defined by an
AsyncDataQuery.
- convertResultsSync(AsyncDataQuery<? super QueryArgType, ? extends OldDataType>, DataConverter<? super OldDataType, ? extends NewDataType>) - Static method in class org.jtrim2.concurrent.query.AsyncQueries
-
Creates a new AsyncDataQuery which will provide the same data as
the specified AsyncDataQuery but will apply the user defined
conversion on the data.
- convertResultSync(AsyncDataLink<? extends OldType>, DataConverter<? super OldType, ? extends NewType>) - Static method in class org.jtrim2.concurrent.query.AsyncLinks
-
Creates an
AsyncDataLink which will provide the same data
as the specified
AsyncDataLink but applies a conversion on the
provided data.
- createDataLink(QueryArgType) - Method in interface org.jtrim2.concurrent.query.AsyncDataQuery
-
Creates a AsyncDataLink which will provide data based on the
specified input.
- createDataLink(CachedLinkRequest<QueryArgType>) - Method in class org.jtrim2.concurrent.query.CachedAsyncDataQuery
-
Returns an AsyncDataLink which will provide data based on the
specified input.
- createDataLink(CachedLinkRequest<DataWithUid<QueryArgType>>) - Method in class org.jtrim2.concurrent.query.CachedByIDAsyncDataQuery
-
Returns an AsyncDataLink which will provide data based on the
specified input.
- createPreparedLink(DataType, AsyncDataState) - Static method in class org.jtrim2.concurrent.query.AsyncLinks
-
Creates and returns an AsyncDataLink which will provide the given
data.
- createStateReporterLink(AsyncDataLink<DataType>, AsyncStateReporter<DataType>, long, TimeUnit) - Static method in class org.jtrim2.concurrent.query.AsyncLinks
-
Creates a new AsyncDataLink which will provide the exact same
data as the specified AsyncDataLink but will periodically report
the state of the data retrieving process.
- createStateReporterLink(UpdateTaskExecutor, AsyncDataLink<DataType>, AsyncStateReporter<DataType>, long, TimeUnit) - Static method in class org.jtrim2.concurrent.query.AsyncLinks
-
Creates a new AsyncDataLink which will provide the exact same
data as the specified AsyncDataLink but will periodically report
the state of the data retrieving process.
- getCacheExpire(TimeUnit) - Method in class org.jtrim2.concurrent.query.CachedLinkRequest
-
Returns the timeout value in the given time unit after an
AsyncDataLink requested by this request becomes invalid and must
be recreated.
- getConverter() - Method in class org.jtrim2.concurrent.query.AsyncDataConverter
-
Returns the data converter object which will carry out the conversion of
the input data.
- getData(CancellationToken, AsyncDataListener<? super DataType>) - Method in interface org.jtrim2.concurrent.query.AsyncDataLink
-
Starts retrieving the data which is linked to this AsyncDataLink.
- getData() - Method in class org.jtrim2.concurrent.query.DataWithUid
-
Returns the data specified at construction time.
- getData(CancellationToken, AsyncDataListener<? super DataType>) - Method in class org.jtrim2.concurrent.query.io.AsyncChannelLink
-
Starts retrieving the data which is linked to this AsyncDataLink.
- getData() - Method in class org.jtrim2.concurrent.query.RefCachedData
-
Returns the data which is referenced by the stored
VolatileReference returned by the
getDataRef method.
- getDataCancelTimeout(TimeUnit) - Method in class org.jtrim2.concurrent.query.CachedDataRequest
-
Returns the timeout value to wait before actually canceling abandoned
data retrieval processes in the given time unit.
- getDataRef() - Method in class org.jtrim2.concurrent.query.RefCachedData
-
Returns the
VolatileReference referencing the stored
data.
- getDataState() - Method in interface org.jtrim2.concurrent.query.AsyncDataController
-
Returns the current progress of the data providing process.
- getDataState() - Method in class org.jtrim2.concurrent.query.DelegatedAsyncDataController
-
Returns the current progress of the data providing process.
- getDataState() - Method in enum org.jtrim2.concurrent.query.DoNothingDataController
-
Does nothing and returns null.
- getDataState() - Method in class org.jtrim2.concurrent.query.InitLaterDataController
-
Returns the current progress of the data providing process.
- getDataState() - Method in class org.jtrim2.concurrent.query.SimpleDataController
-
Returns the
AsyncDataState object which was last set by the
setDataState() method or the one
specified at construction time if there was no
setDataState()
call yet.
- getException() - Method in class org.jtrim2.concurrent.query.AsyncReport
-
Returns the exception describing the error occurred during the
data transfer of which completion this AsyncReport represents.
- getExecutor() - Method in class org.jtrim2.concurrent.query.AsyncDataConverter
-
Returns the TaskExecutorService on which the data conversion is
intended to be executed.
- getExecutor() - Method in class org.jtrim2.concurrent.query.AsyncDataTransformer
-
Returns the TaskExecutorService on which the data transformation
is intended to be executed.
- getID() - Method in class org.jtrim2.concurrent.query.DataWithUid
-
Returns the ID which is used to determine if two
data
is to be considered equivalent.
- getIndex() - Method in class org.jtrim2.concurrent.query.OrderedData
-
Returns the index defining how accurate the associated
data is.
- getMainControlData() - Method in class org.jtrim2.concurrent.query.LinkedDataControl
-
Returns the control object used to control the primary
AsyncDataLink instance.
- getObjectCache() - Method in class org.jtrim2.concurrent.query.CachedDataRequest
-
Returns the ObjectCache used to cache the data to be retrieved.
- getProgress() - Method in interface org.jtrim2.concurrent.query.AsyncDataState
-
Returns the estimated state of progress within the range [0.0, 1.0].
- getProgress() - Method in class org.jtrim2.concurrent.query.MultiAsyncDataState
-
Returns an aggregated progress value of the underlying states.
- getProgress() - Method in class org.jtrim2.concurrent.query.SimpleDataState
-
Returns the estimated state of progress within the range [0.0, 1.0].
- getQueryArg() - Method in class org.jtrim2.concurrent.query.CachedDataRequest
-
Returns the object used as the input of the query of the data.
- getQueryArg() - Method in class org.jtrim2.concurrent.query.CachedLinkRequest
-
Returns the object used as the input of the query of the data.
- getRawData() - Method in class org.jtrim2.concurrent.query.OrderedData
-
Returns the actual data whose accuracy is described by the
index.
- getRefType() - Method in class org.jtrim2.concurrent.query.CachedDataRequest
-
Returns the
ReferenceType to be used to reference the cached data
using the
ObjectCache property.
- getReport(Throwable) - Static method in class org.jtrim2.concurrent.query.AsyncReport
-
Returns an AsyncReport instance with the specified exception
attached to it and deriving the canceled state from the type of the exception.
- getReport(Throwable, boolean) - Static method in class org.jtrim2.concurrent.query.AsyncReport
-
Returns an AsyncReport instance with the specified exception
attached to it and with the specified canceled state.
- getSecondaryControlData() - Method in class org.jtrim2.concurrent.query.LinkedDataControl
-
Returns the control object used to control the secondary
AsyncDataLink instance.
- getState() - Method in class org.jtrim2.concurrent.query.SimpleDataState
-
Returns the string describing the current state of progress.
- getSubProgress(int) - Method in class org.jtrim2.concurrent.query.MultiAsyncDataState
-
Returns the
progress value of the
underlying state at the given index.
- getSubState(int) - Method in class org.jtrim2.concurrent.query.MultiAsyncDataState
-
Returns the underlying state at the given index.
- getSubStateCount() - Method in class org.jtrim2.concurrent.query.MultiAsyncDataState
-
Returns the number of underlying AsyncDataState instances.
- getSubStateList() - Method in class org.jtrim2.concurrent.query.MultiAsyncDataState
-
Returns a read-only list of the underlying AsyncDataState
instances in the order they were specified at construction time.
- getTransferException(Throwable...) - Static method in class org.jtrim2.concurrent.query.AsyncHelper
-
- getTransformer() - Method in class org.jtrim2.concurrent.query.AsyncDataTransformer
-
Returns the data transformer object which will carry out the conversion
of the input data.
- toIndentedString(Object, boolean) - Static method in class org.jtrim2.concurrent.query.AsyncFormatHelper
-
Converts the specified object to string (using its
toString method) and returns this string after
applying an indentation.
- toString() - Method in class org.jtrim2.concurrent.query.AsyncDataConverter
-
Returns the string representation of this AsyncDataConverter in
no particular format.
- toString() - Method in class org.jtrim2.concurrent.query.AsyncDataTransformer
-
Returns the string representation of this AsyncDataTransformer in
no particular format.
- toString() - Method in class org.jtrim2.concurrent.query.AsyncReport
-
Returns the string representation of this AsyncReport in no
particular format.
- toString() - Method in class org.jtrim2.concurrent.query.CachedAsyncDataQuery
-
Returns the string representation of this AsyncDataQuery in no
particular format.
- toString() - Method in class org.jtrim2.concurrent.query.CachedByIDAsyncDataQuery
-
Returns the string representation of this AsyncDataQuery in no
particular format.
- toString() - Method in class org.jtrim2.concurrent.query.CachedDataRequest
-
Returns the string representation of this CachedDataRequest in no
particular format.
- toString() - Method in class org.jtrim2.concurrent.query.CachedLinkRequest
-
Returns the string representation of this CachedLinkRequest in no
particular format.
- toString() - Method in class org.jtrim2.concurrent.query.DataWithUid
-
Returns the string representation of this DataWithUid in no
particular format.
- toString() - Method in class org.jtrim2.concurrent.query.DelegatedAsyncDataController
- toString() - Method in enum org.jtrim2.concurrent.query.DoNothingDataController
-
Returns the string representation of this DoNothingDataController
in no particular format.
- toString() - Method in class org.jtrim2.concurrent.query.InitLaterDataController
-
Returns the string representation of this InitLaterDataController
in no particular format.
- toString() - Method in class org.jtrim2.concurrent.query.LinkedDataControl
-
Returns the string representation of this LinkedDataControl in no
particular format.
- toString() - Method in class org.jtrim2.concurrent.query.MultiAsyncDataState
-
Returns the string representation of this MultiAsyncDataState in
no particular format.
- toString() - Method in class org.jtrim2.concurrent.query.OrderedData
-
Returns the string representation of this OrderedData in no
particular format.
- toString() - Method in class org.jtrim2.concurrent.query.RefCachedData
-
Returns the string representation of this RefCachedData in no
particular format.
- toString() - Method in class org.jtrim2.concurrent.query.SimpleDataState
-
Returns the string representation of this SimpleDataState in no
particular format.
- transform(DataType) - Method in interface org.jtrim2.concurrent.query.DataTransformer
-
Transforms the data as defined by the implementation.