Skip navigation links
A B C D E F G H I J L M N P R S T U W 

A

Async - Interface in se.tedro.concurrent
The async framework.

B

backoff() - Method in class se.tedro.concurrent.RetryDecision
How many milliseconds should the retry wait for until it can be retried.
borrow() - Method in interface se.tedro.concurrent.Managed
Borrow the underlying reference.
Borrowed<T> - Interface in se.tedro.concurrent
A borrowed reference.
build() - Method in class se.tedro.concurrent.RetryPolicy.ExponentialBuilder
 

C

call(Callable<? extends T>) - Method in interface se.tedro.concurrent.Async
Call the given callable on the default executor and track the result using a completable.
call(Callable<? extends T>, ExecutorService) - Method in interface se.tedro.concurrent.Async
Call the given callable on the provided executor and track the result using a completable.
Caller - Interface in se.tedro.concurrent
Methods for calling user-defined actions and report errors.
cancel() - Method in interface se.tedro.concurrent.Stage
Cancel the current stage.
cancelled() - Method in interface se.tedro.concurrent.Async
Build an immediately cancelled completable.
cancelled() - Method in interface se.tedro.concurrent.Handle
Handle to be called when the underlying stage is cancelled.
CANCELLED - Static variable in interface se.tedro.concurrent.Stage
 
CAPTURE_STACK - Static variable in interface se.tedro.concurrent.Managed
System property that if set to 'yes', will cause stacks to be captured by borrowed references.
cause() - Method in interface se.tedro.concurrent.Stage
Get the cause of a failed stage.
ClockSource - Interface in se.tedro.concurrent
A clock source that gives the current time in milliseconds.
close() - Method in interface se.tedro.concurrent.Borrowed
The close method, as defined by AutoCloseable.close() to allow for try-with-resources statements.
collect(Stream<? extends Stage<T>>) - Method in interface se.tedro.concurrent.Async
Collect the result of multiple stages from a stream.
collect(Collection<? extends Stage<? extends T>>) - Method in interface se.tedro.concurrent.Async
Build a new completable that is the result of collecting all the results in a collection.
collect(Collection<? extends Stage<? extends T>>, Function<? super Collection<T>, ? extends U>) - Method in interface se.tedro.concurrent.Async
Build a new completable that is the result of reducing the provided collection of stages using the provided collector.
collectAndDiscard(Stream<? extends Stage<?>>) - Method in interface se.tedro.concurrent.Async
Collect the results from a stream of stages, then discard them.
collectAndDiscard(Collection<? extends Stage<?>>) - Method in interface se.tedro.concurrent.Async
Collect the results from a collection of stages, then discard them.
completable() - Method in interface se.tedro.concurrent.Async
Build a new resolvable completable.
Completable<T> - Interface in se.tedro.concurrent
A value that can be completed at a later point in time.
complete(T) - Method in interface se.tedro.concurrent.Completable
Complete the current stage.
completed() - Method in interface se.tedro.concurrent.Async
Returns an already completed void completable.
completed(T) - Method in interface se.tedro.concurrent.Async
Build an already completed completable.
completed(T) - Method in interface se.tedro.concurrent.Handle
Handle to be called when the underlying stage is completed.
COMPLETED - Static variable in interface se.tedro.concurrent.Stage
 

D

doto(Function<? super T, ? extends Stage<U>>) - Method in interface se.tedro.concurrent.Managed
Borrow a reference and execute the given action.

E

eventuallyCollect(Collection<? extends Callable<? extends Stage<? extends T>>>, Consumer<? super T>, Supplier<? extends U>, int) - Method in interface se.tedro.concurrent.Async
Collect the result from a collection of operations that are lazily created.
execute(Runnable) - Method in interface se.tedro.concurrent.Caller
Execute the given action.
exponential(long, TimeUnit) - Static method in interface se.tedro.concurrent.RetryPolicy
Setup an exponential backoff retry policy.

F

factor(double) - Method in class se.tedro.concurrent.RetryPolicy.ExponentialBuilder
Factor to use when increasing the retry delay.
fail(Throwable) - Method in interface se.tedro.concurrent.Completable
Fail the current stage.
failed(Throwable) - Method in interface se.tedro.concurrent.Async
Build an already failed completable.
failed(Throwable) - Method in interface se.tedro.concurrent.Handle
Handle to be called when the underlying stage is failed.
FAILED - Static variable in interface se.tedro.concurrent.Stage
 

G

get() - Method in interface se.tedro.concurrent.Borrowed
Fetch the borrowed reference.
getErrors() - Method in class se.tedro.concurrent.RetryResult
 
getOffsetMillis() - Method in exception se.tedro.concurrent.RetryException
Offset from start time in milliseconds that this failure happened.
getResult() - Method in class se.tedro.concurrent.RetryResult
 

H

Handle<T> - Interface in se.tedro.concurrent
Handle to implement that can catch all the different states of a stage.
handle(Handle<? super T>) - Method in interface se.tedro.concurrent.Stage
Register a listener that is called on all three types of events for the current stage; completed, failed, and cancelled.

I

isCancelled() - Method in interface se.tedro.concurrent.Stage
Check if stage is in the cancelled state.
isCompleted() - Method in interface se.tedro.concurrent.Stage
Check if stage is completed.
isDone() - Method in interface se.tedro.concurrent.Stage
Indicates if the stage is done
isFailed() - Method in interface se.tedro.concurrent.Stage
Check if the stage was exceptionally completed.
isReady() - Method in interface se.tedro.concurrent.Managed
If managed reference is started, but not stopping or stopped.
isValid() - Method in interface se.tedro.concurrent.Borrowed
Check if the borrowed reference is valid.

J

join() - Method in interface se.tedro.concurrent.Stage
Join the result of the current stage.
join(long, TimeUnit) - Method in interface se.tedro.concurrent.Stage
Join the result of the current stage with a timeout.
joinNow() - Method in interface se.tedro.concurrent.Stage
Join the result of the current stage, or fail if it's state is still running.

L

linear(long, TimeUnit) - Static method in interface se.tedro.concurrent.RetryPolicy
Build a linear retry policy.

M

managed(Supplier<? extends Stage<T>>, Function<? super T, ? extends Stage<Void>>) - Method in interface se.tedro.concurrent.Async
Setup a managed reference.
Managed<T> - Interface in se.tedro.concurrent
Managed lightweight, reference-counted objects.
max(long, TimeUnit) - Method in class se.tedro.concurrent.RetryPolicy.ExponentialBuilder
Max possible delay.

N

newInstance(ClockSource) - Method in class se.tedro.concurrent.RetryPolicy.Exponential
 
newInstance(ClockSource) - Method in class se.tedro.concurrent.RetryPolicy.Linear
 
newInstance(ClockSource) - Method in interface se.tedro.concurrent.RetryPolicy
Create a new instance of the policy.
newInstance(ClockSource) - Method in class se.tedro.concurrent.RetryPolicy.Timed
 
now() - Method in interface se.tedro.concurrent.ClockSource
Get the current time in milliseconds.

P

PENDING - Static variable in interface se.tedro.concurrent.Stage
 

R

referenceLeaked(Object, StackTraceElement[]) - Method in interface se.tedro.concurrent.Caller
Indicate that a Managed reference has been leaked.
release() - Method in interface se.tedro.concurrent.Borrowed
Release the borrowed reference.
reload() - Method in interface se.tedro.concurrent.ReloadableManaged
Reload the underlying reference.
reloadableManaged(Supplier<? extends Stage<T>>, Function<? super T, ? extends Stage<Void>>) - Method in interface se.tedro.concurrent.Async
Setup a reloadable, managed reference.
ReloadableManaged<T> - Interface in se.tedro.concurrent
Managed lightweight, reference-counted objects that can be reloaded.
RetryDecision - Class in se.tedro.concurrent
The decision of an applied retry policy.
RetryException - Exception in se.tedro.concurrent
An exception class containing detailed information about when a retried operation failed.
RetryException(long, Throwable) - Constructor for exception se.tedro.concurrent.RetryException
 
RetryPolicy - Interface in se.tedro.concurrent
A policy that governs how and when an operation should be retried.
RetryPolicy.Exponential - Class in se.tedro.concurrent
Implementation for the exponential retry policy.
RetryPolicy.ExponentialBuilder - Class in se.tedro.concurrent
Builder of exponential retry policies.
RetryPolicy.Linear - Class in se.tedro.concurrent
Implementation for the linear retry policy.
RetryPolicy.Timed - Class in se.tedro.concurrent
Implementation for the timed retry policy.
RetryResult<T> - Class in se.tedro.concurrent
Contains the result of a retry operation.
RetryResult(T, List<RetryException>) - Constructor for class se.tedro.concurrent.RetryResult
 
retryUntilCompleted(Callable<? extends Stage<T>>, RetryPolicy) - Method in interface se.tedro.concurrent.Async
Retry the given action until it has been completed, or the provided RetryPolicy expire.
retryUntilCompleted(Callable<? extends Stage<T>>, RetryPolicy, ClockSource) - Method in interface se.tedro.concurrent.Async
Retry the given action until it has been completed, or the provided RetryPolicy expire.

S

se.tedro.concurrent - package se.tedro.concurrent
Replacement classes for asynchronous operations in Java.
shouldRetry() - Method in class se.tedro.concurrent.RetryDecision
If another retry should be attemped.
Stage<T> - Interface in se.tedro.concurrent
An interface that defines a contract with a computation that could be asynchronous.
start() - Method in interface se.tedro.concurrent.Managed
Start the managed reference.
stop() - Method in interface se.tedro.concurrent.Managed
Stop the underlying managed reference.
streamCollect(Collection<? extends Stage<? extends T>>, Consumer<? super T>, Supplier<? extends U>) - Method in interface se.tedro.concurrent.Async
Build a new stage that is the result of applying a computation on a collection of stages.
SYSTEM - Static variable in interface se.tedro.concurrent.ClockSource
 
system() - Static method in interface se.tedro.concurrent.ClockSource
 

T

thenApply(Function<? super T, ? extends U>) - Method in interface se.tedro.concurrent.Stage
Transform the value of the current stage into another type using an immediate function.
thenApplyFailed(Function<? super Throwable, ? extends T>) - Method in interface se.tedro.concurrent.Stage
Apply a failed stage.
thenCancel() - Method in interface se.tedro.concurrent.Stage
Build a stage is cancelled, but waits until the current stage completes.
thenComplete(U) - Method in interface se.tedro.concurrent.Stage
Build a stage is completed, but waits until the current stage completes.
thenCompose(Function<? super T, ? extends Stage<U>>) - Method in interface se.tedro.concurrent.Stage
Compose the current stage with the given function.
thenComposeCaught(Function<? super Throwable, ? extends Stage<T>>) - Method in interface se.tedro.concurrent.Stage
Compose a failed stage.
thenFail(Throwable) - Method in interface se.tedro.concurrent.Stage
Build a stage is failed, but waits until the current stage completes.
timed(long, TimeUnit, RetryPolicy) - Static method in interface se.tedro.concurrent.RetryPolicy
Wrap an existing retry policy which is only valid for a given time.
toString() - Method in class se.tedro.concurrent.RetryDecision
 
toString() - Method in exception se.tedro.concurrent.RetryException
 
toString() - Method in class se.tedro.concurrent.RetryPolicy.Exponential
 
toString() - Method in class se.tedro.concurrent.RetryPolicy.Linear
 
toString() - Method in class se.tedro.concurrent.RetryPolicy.Timed
 
TRACING - Static variable in interface se.tedro.concurrent.Managed
System property that if set to 'yes', will cause the managed references to be traced.

U

UNIT - Static variable in interface se.tedro.concurrent.ClockSource
 

W

whenCancelled(Runnable) - Method in interface se.tedro.concurrent.Stage
Register an listener to be called when the current stage is cancelled.
whenComplete(Consumer<? super T>) - Method in interface se.tedro.concurrent.Stage
Register a listener to be called when the current stage is completed.
whenDone(Runnable) - Method in interface se.tedro.concurrent.Stage
Register a listener to be called when the current stage finishes for any reason.
whenFailed(Consumer<? super Throwable>) - Method in interface se.tedro.concurrent.Stage
Register a listener that is called when a stage is failed.
withCloser(Supplier<? extends Stage<Void>>, Supplier<? extends Stage<Void>>) - Method in interface se.tedro.concurrent.Stage
Run one of the provided stages when this stage ends up in a given state.
withComplete(Supplier<? extends Stage<Void>>) - Method in interface se.tedro.concurrent.Stage
Run the provided stage when the current stage has completed.
withNotComplete(Supplier<? extends Stage<Void>>) - Method in interface se.tedro.concurrent.Stage
Run the provided stage when the current stage ends, but does not complete.
A B C D E F G H I J L M N P R S T U W 
Skip navigation links

Copyright © 2017. All rights reserved.