Skip navigation links
A B C D E F G K L M P R S T U V W 

A

a - Variable in class me.jaksa.Pair
 
and(FunctionWithException<T, R>) - Method in class me.jaksa.FunctionalTransaction
Creates another transaction and chains it to this one preserving the intermediate result.
apply(T) - Method in interface me.jaksa.FunctionWithException
 
atomically(VoidTransaction...) - Static method in class me.jaksa.Transactions
Tries to perform one or more VoidTransactions, retrying each one several times in case of failures.
atomically(FunctionalTransaction<T>) - Static method in class me.jaksa.Transactions
Tries to evaluate a FunctionalTransaction, retrying each one several times in case of failures.

B

b - Variable in class me.jaksa.Pair
 
beginTx() - Static method in class me.jaksa.LongTransactions
Starts a LongTransaction and binds it to the current thread.

C

commitTx() - Static method in class me.jaksa.LongTransactions
Commits the LongTransaction bound to the current thread.

D

DEFAILT_RETRIES - Static variable in class me.jaksa.Unreliable
 

E

evaluate(SupplierWithException<T>) - Static method in class me.jaksa.Transactions
Builds a FunctionalTransaction that can have a rollback and/or a commit.

F

FunctionalTransaction<T> - Class in me.jaksa
A lightweight transaction that returns a value.
FunctionalTransaction(SupplierWithException<T>) - Constructor for class me.jaksa.FunctionalTransaction
Constructs a lightweight transaction that can have a rollback and a commit.
FunctionalTransaction(FunctionWithException<I, T>, FunctionalTransaction<I>) - Constructor for class me.jaksa.FunctionalTransaction
Constructs a lightweight transaction chained to a previous one.
FunctionWithException<T,R> - Interface in me.jaksa
A variant of the Function interface that throws an exception.

G

get() - Method in interface me.jaksa.SupplierWithException
 

K

keepTrying(RunnableWithException) - Static method in class me.jaksa.Unreliable
Performs an action until no exception is thrown.
keepTrying(SupplierWithException<T>) - Static method in class me.jaksa.Unreliable
Tries to retrieve a value until no exception is thrown.

L

longTransaction(RunnableWithException) - Static method in class me.jaksa.LongTransactions
Defines the transaction boundaries.
LongTransactions - Class in me.jaksa
Provides utility functions for lightweight transaction management.
LongTransactions() - Constructor for class me.jaksa.LongTransactions
 

M

me.jaksa - package me.jaksa
 

P

Pair<A,B> - Class in me.jaksa
 
Pair(A, B) - Constructor for class me.jaksa.Pair
 
perform(RunnableWithException) - Static method in class me.jaksa.Transactions
Builds an VoidTransaction that can have a rollback and/or a commit.

R

retry(int) - Method in class me.jaksa.FunctionalTransaction
Specify the number of retires for the evaluation of this function.
retry(int) - Method in class me.jaksa.VoidTransaction
Specify the number of retires for this transaction.
retryOn(Class, RunnableWithException) - Static method in class me.jaksa.Unreliable
Tries to execute the supplied runnable up to three times as long as the specified exception is being thrown.
retryOn(Class, SupplierWithException<T>) - Static method in class me.jaksa.Unreliable
Tries to retrieve a value up to three times as long as the specified exception is being thrown.
retryOn(Class, RunnableWithException, int) - Static method in class me.jaksa.Unreliable
Tries to execute the supplied runnable up to the specified number of times as long as the specified exception is being thrown.
retryOn(Class, SupplierWithException<T>, int) - Static method in class me.jaksa.Unreliable
Tries to retrieve a value up to the specified number of times as long as the specified exception is being thrown.
retryOn(Collection<Class>, RunnableWithException) - Static method in class me.jaksa.Unreliable
Tries to execute the runnable up to three times as long as one of the specified exceptions is being thrown.
retryOn(Collection<Class>, RunnableWithException, int) - Static method in class me.jaksa.Unreliable
Tries to execute the runnable up to the specified number of times as long as one of the specified exceptions is being thrown.
retryOn(Collection<Class>, SupplierWithException<T>) - Static method in class me.jaksa.Unreliable
Tries to retrieve a value up to three times as long as one of the specified exceptions is being thrown.
retryOn(Collection<Class>, SupplierWithException<T>, int) - Static method in class me.jaksa.Unreliable
Tries to retrieve a value up to the specified number of times as long as one of the specified exceptions is being thrown.
rollbackTx() - Static method in class me.jaksa.LongTransactions
Rolls back the LongTransaction bound to the current thread.
run() - Method in interface me.jaksa.RunnableWithException
 
RunnableWithException - Interface in me.jaksa
A functional interface that acts as a variant of Runnable that throws an exception.

S

SupplierWithException<T> - Interface in me.jaksa
A variant of the Supplier interface that throws an exception.

T

tenaciously(RunnableWithException) - Static method in class me.jaksa.Unreliable
Performs an action up to three times until no exception is thrown.
tenaciously(RunnableWithException, int) - Static method in class me.jaksa.Unreliable
Performs an action up to the specified number of times until no exception is thrown.
tenaciously(SupplierWithException<T>) - Static method in class me.jaksa.Unreliable
Tries to retrieve a value up to three times until no exception is thrown.
tenaciously(SupplierWithException<T>, int) - Static method in class me.jaksa.Unreliable
Tries to retrieve a value up to the specified number of times until no exception is thrown.
then(FunctionWithException<T, R>) - Method in class me.jaksa.FunctionalTransaction
Creates another transaction and chains it to this one.
transactionally(FunctionalTransaction<T>) - Static method in class me.jaksa.LongTransactions
Adds a transactional operation the the transaction bound to the current thread.
Transactions - Class in me.jaksa
Provides utility functions for lightweight transaction management.
Transactions() - Constructor for class me.jaksa.Transactions
 

U

Unreliable - Class in me.jaksa
Utility methods to make it easier to work with unreliable components
Unreliable() - Constructor for class me.jaksa.Unreliable
 

V

VoidTransaction - Class in me.jaksa
Represents lightweight transactions that can have an associated rollback, commit or custom verification.
VoidTransaction(RunnableWithException) - Constructor for class me.jaksa.VoidTransaction
Constructs a lightweight transaction that can have a rollback and a commit.

W

withCommit(Consumer<T>) - Method in class me.jaksa.FunctionalTransaction
Specify the commit for this function.
withCommit(Runnable) - Method in class me.jaksa.VoidTransaction
Specify the commit for this transaction.
withReset(Consumer<T>) - Method in class me.jaksa.FunctionalTransaction
withReset(Runnable) - Method in class me.jaksa.VoidTransaction
withRollback(Consumer<T>) - Method in class me.jaksa.FunctionalTransaction
Specify the rollback for this function.
withRollback(Runnable) - Method in class me.jaksa.FunctionalTransaction
Specify the rollback for this function.
withRollback(Runnable) - Method in class me.jaksa.VoidTransaction
Specify the rollback for this transaction.
withVerification(Function<T, Boolean>) - Method in class me.jaksa.FunctionalTransaction
Specify the verification for this function.
withVerification(Supplier<Boolean>) - Method in class me.jaksa.VoidTransaction
Specify the verification Supplier for this transaction.
A B C D E F G K L M P R S T U V W 
Skip navigation links

Copyright © 2019. All rights reserved.