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

A

accept(T) - Method in interface org.swblocks.jbl.functional.ThrowsConsumer
Performs this operation on the given argument.
ActionRetrier<T> - Interface in org.swblocks.jbl.util.retry
Interface that must be implemented by action retrier classes.
assertConstructorIsPrivate(Class) - Static method in class org.swblocks.jbl.test.utils.JblTestClassUtils
Asserts that the constructor of a Class is private.
assertGetterCorrectForConstructorInjection(Map<String, Object>, T) - Static method in class org.swblocks.jbl.test.utils.JblTestClassUtils
Asserts that getter methods return the correct values when a class in initialised by a constructor.
assertSettersAndGettersCorrect(Map<String, Object>, T, Map<String, Class>) - Static method in class org.swblocks.jbl.test.utils.JblTestClassUtils
Asserts that getter methods return the same values applied by the setter method in a class.

B

BaseException - Exception in org.swblocks.jbl.eh
The base exception class for all exceptions.
BaseException(Throwable, String, Throwable) - Constructor for exception org.swblocks.jbl.eh.BaseException
A protected constructor (that allows referenceException to be set) to be used only by the derived types (if necessary).
BaseException(String) - Constructor for exception org.swblocks.jbl.eh.BaseException
See documentation for RuntimeException.RuntimeException(String).
BaseException(String, Throwable) - Constructor for exception org.swblocks.jbl.eh.BaseException
See documentation for RuntimeException.RuntimeException(String, Throwable).
build() - Method in class org.swblocks.jbl.builders.Builder
Creates the domain buildFn, applies all the operations defined and then generates the domain results class.
Builder<B,R> - Class in org.swblocks.jbl.builders
Generic Builder class to define a creator and build operations to apply to the created object.

C

checkResult(Result<E>) - Static method in class org.swblocks.jbl.eh.EhSupport
Checks if Result object is successful and returns the actual result value.
CollectionUtils - Class in org.swblocks.jbl.collections
Collection Utilities.
ComponentLifecycle - Interface in org.swblocks.jbl.lifecycle
A common interface defining methods for start/stop lifecycle control for components to implement and can be integrated into the JBL lifecycle process.
ComponentLifecycleManager - Class in org.swblocks.jbl.lifecycle
Class to manage a set of ComponentLifecycle components.
ComponentLifecycleManager(List<ComponentLifecycle>) - Constructor for class org.swblocks.jbl.lifecycle.ComponentLifecycleManager
Constructs the ComponentLifecycleManager with the List of ComponentLifecycle objects to manage.
ComponentLoaderUtils - Class in org.swblocks.jbl.lifecycle
Class to load additional ComponentLifecycle components at runtime as defined by an external file mapping of resources to load.
createCappedIncrementingTimeGenerator(long, long, long, int) - Static method in class org.swblocks.jbl.util.retry.Retrier
Method to create a capped time incrementing time generator (iterator) from the specified arguments.
createConstantTimeGenerator(long) - Static method in class org.swblocks.jbl.util.retry.Retrier
Create a constant time generator.
createContinuousSleepRetrier(Supplier<Iterator<Long>>) - Static method in class org.swblocks.jbl.util.retry.Retrier
Method to create an ActionRetrier that has no limit on the the number of retry attempts.
createDefaultCappedIncrementingRetrier() - Static method in class org.swblocks.jbl.util.retry.Retrier
Create a retrier that that will increment the time between retry attempts if a failure occurs.
createDefaultContinuousCappedIncrementingRetrier() - Static method in class org.swblocks.jbl.util.retry.Retrier
Create a retrier that will keep retrying the action until success and incrementing the time between attempts.
createDefaultContinuousConstantSleepRetrier() - Static method in class org.swblocks.jbl.util.retry.Retrier
Create a retrier that will continually retry with a constant time between retry attempts.
createDefaultExceptionPredicate() - Static method in class org.swblocks.jbl.util.retry.Retrier
A predicate that returns true for any exceptions derived from Exception.
createDefaultSingleSleepRetrier() - Static method in class org.swblocks.jbl.util.retry.Retrier
Create a retrier that will retry an action once if the action fails.
createNonRetrier() - Static method in class org.swblocks.jbl.util.retry.Retrier
Create a retrier that executes the action once only and will never retry.
createSleepRetrier(Supplier<Iterator<Long>>, int) - Static method in class org.swblocks.jbl.util.retry.Retrier
Method to return a ActionRetrier to execute an action.
createStarted() - Static method in class org.swblocks.jbl.monitoring.Timer
Creates and returns a Timer which is already started and running.

D

DateRange - Class in org.swblocks.jbl.util
Class containing immutable dates defining the start and finish times of a date range.
DateRange(Instant, Instant) - Constructor for class org.swblocks.jbl.util.DateRange
 
DEFAULT_CAPPED_INCREMENTING_TIME_GENERATOR - Static variable in class org.swblocks.jbl.util.retry.Retrier
 
DEFAULT_CONSTANT_TIME_GENERATOR - Static variable in class org.swblocks.jbl.util.retry.Retrier
 
DEFAULT_PHASE - Static variable in interface org.swblocks.jbl.lifecycle.ComponentLifecycle
 

E

EH_PROPERTY_COMMAND_EXIT_CODE - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_COMMAND_OUTPUT - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_CUSTOM_PREFIX - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_ENDPOINT - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_FULL_CLASS_NAME - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_HOST - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_HTTP_REDIRECT_URL - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_HTTP_REQUEST_DETAILS - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_HTTP_RESPONSE_HEADERS - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_HTTP_STATUS_CODE - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_HTTP_URL - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_IO_FILE_PATH - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_IS_EXPECTED - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_IS_USER_FRIENDLY - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_LOCATION_LINE_NUMBER - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_LOCATION_METHOD_NAME - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_MESSAGE - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_PARSER_COLUMN - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_PARSER_FILE_PATH - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_PARSER_LINE_NUMBER - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_PARSER_REASON - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_PORT - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EH_PROPERTY_TIME_THROWN - Static variable in class org.swblocks.jbl.eh.EhCoreProperties
 
EhCoreProperties - Class in org.swblocks.jbl.eh
The core properties of all exceptions.
EhSupport - Class in org.swblocks.jbl.eh
A static class for EH support helpers.
enhance(Throwable) - Static method in class org.swblocks.jbl.eh.EhSupport
Enhance an exception if it is not already enhanced and return it.
enhance(Throwable, String, Object) - Static method in class org.swblocks.jbl.eh.EhSupport
Enhance an exception if it is not already enhanced, add a new property and then return it.
enhanceAndRethrow(ThrowsRunnable, Consumer<BaseException>) - Static method in class org.swblocks.jbl.eh.EhSupport
If an exception if thrown from a simple callback it gets enhanced by the specified callback and then rethrown.
enhanceAndRethrow(ThrowsRunnable, String, Object) - Static method in class org.swblocks.jbl.eh.EhSupport
If an exception if thrown from a simple callback it gets enhanced with the specified property and rethrown.
enhanceAndRethrowFn(ThrowsSupplier<R>, Consumer<BaseException>) - Static method in class org.swblocks.jbl.eh.EhSupport
If an exception if thrown from a functional callback it gets enhanced by the specified callback and then rethrown.
enhanceAndRethrowFn(ThrowsSupplier<R>, String, Object) - Static method in class org.swblocks.jbl.eh.EhSupport
If an exception if thrown from a functional callback it gets enhanced with the specified property and rethrown.
equals(Object) - Method in class org.swblocks.jbl.cache.LruCache
 
equals(Object) - Method in class org.swblocks.jbl.util.DateRange
 
equals(Object) - Method in class org.swblocks.jbl.util.MutableObject
 
exceptionsFilterPredicate(Class...) - Static method in class org.swblocks.jbl.util.retry.Retrier
A predicate that matches against a set of exception types.

F

failure(Supplier<Exception>) - Static method in class org.swblocks.jbl.eh.Result
Create a failure Result object from an exception supplier.

G

get() - Method in interface org.swblocks.jbl.functional.ThrowsSupplier
Gets a result.
getBuiltInProperties() - Static method in class org.swblocks.jbl.eh.EhCoreProperties
Obtains read-only view of the built in properties and their expected types.
getCache(int, int, float) - Static method in class org.swblocks.jbl.cache.LruCache
Static method to create and return an new instance of a simple LRU cache.
getCallerFrame() - Method in exception org.swblocks.jbl.eh.BaseException
Gets the caller frame.
getData() - Method in class org.swblocks.jbl.eh.Result
Returns underlying data stored when the result is a success.
getDuration() - Method in class org.swblocks.jbl.monitoring.Timer
Gets the Duration between the start and stop times
getException() - Method in class org.swblocks.jbl.eh.Result
Get the failure exception.
getExceptionDetails(Function<StringBuffer, R>) - Method in exception org.swblocks.jbl.eh.BaseException
* Obtains the exception details dump, including all properties, for an exception.
getExceptionDetails(Throwable, Function<StringBuffer, R>) - Static method in class org.swblocks.jbl.eh.EhSupport
Obtains the exception details dump, including all properties, for an exception.
getExceptionDetailsAsString() - Method in exception org.swblocks.jbl.eh.BaseException
Obtains the exception details dump, including all properties, for an exception as string.
getExceptionDetailsAsString(Throwable) - Static method in class org.swblocks.jbl.eh.EhSupport
Obtains the exception details dump, including all properties, for an exception as string.
getFinish() - Method in class org.swblocks.jbl.util.DateRange
 
getLapDuration() - Method in class org.swblocks.jbl.monitoring.Timer
Returns the Duration between the start time and the latest lap time.
getPhase() - Method in interface org.swblocks.jbl.lifecycle.ComponentLifecycle
Return the phase value of this object.
getPropertiesException(Throwable) - Static method in class org.swblocks.jbl.eh.EhSupport
Obtains a properties exception associated with this exception.
getStart() - Method in class org.swblocks.jbl.util.DateRange
 
getTimeThrown() - Method in exception org.swblocks.jbl.eh.BaseException
Gets the time at which the exception was thrown.
getTimeThrown(Throwable) - Static method in class org.swblocks.jbl.eh.EhSupport
Obtains the time thrown / enhanced property of an exception.
getValue() - Method in class org.swblocks.jbl.util.MutableObject
 

H

hashCode() - Method in class org.swblocks.jbl.cache.LruCache
 
hashCode() - Method in class org.swblocks.jbl.util.DateRange
 
hashCode() - Method in class org.swblocks.jbl.util.MutableObject
 

I

instanceOf(Supplier<B>, Function<B, R>) - Static method in class org.swblocks.jbl.builders.Builder
Creates an instance of the Builder given creater and buildFn functions.
instanceOf(Supplier<B>, Predicate<B>, Function<B, R>) - Static method in class org.swblocks.jbl.builders.Builder
Creates an instance of the Builder given creater, validator and buildFn functions.
instanceOfLifecycleComponent(String, String) - Static method in class org.swblocks.jbl.lifecycle.ComponentLoaderUtils
Creates an instance of a ComponentLifecycle as requested in the parameters.
isNotEmpty(Collection<?>) - Static method in class org.swblocks.jbl.collections.CollectionUtils
Utility method to check for a not empty Collection including a null check.
isNotEmpty(Map<K, V>) - Static method in class org.swblocks.jbl.collections.CollectionUtils
Utility method to check for a not empty Map including a null check.
isRunning() - Method in interface org.swblocks.jbl.lifecycle.ComponentLifecycle
Check whether this component is currently running.
isRunning() - Method in class org.swblocks.jbl.lifecycle.ComponentLifecycleManager
 
isSuccess() - Method in class org.swblocks.jbl.eh.Result
Check if a success result.

J

JblTestClassUtils - Class in org.swblocks.jbl.test.utils
Test utility class for testing properties about a class.

L

lapAndPrintAsReadableString() - Method in class org.swblocks.jbl.monitoring.Timer
Generates a lap time and returns the duration between this and the last lap time as a readable string with the units prepended.
LruCache<K,V> - Class in org.swblocks.jbl.cache
Class providing a simple LRU cache implementation using LinkedHashMap.

M

MutableObject<T> - Class in org.swblocks.jbl.util
A simple mutable object holder.
MutableObject(T) - Constructor for class org.swblocks.jbl.util.MutableObject
 

O

org.swblocks.jbl.builders - package org.swblocks.jbl.builders
 
org.swblocks.jbl.cache - package org.swblocks.jbl.cache
 
org.swblocks.jbl.collections - package org.swblocks.jbl.collections
 
org.swblocks.jbl.eh - package org.swblocks.jbl.eh
 
org.swblocks.jbl.functional - package org.swblocks.jbl.functional
 
org.swblocks.jbl.lifecycle - package org.swblocks.jbl.lifecycle
 
org.swblocks.jbl.monitoring - package org.swblocks.jbl.monitoring
 
org.swblocks.jbl.test.utils - package org.swblocks.jbl.test.utils
 
org.swblocks.jbl.util - package org.swblocks.jbl.util
 
org.swblocks.jbl.util.retry - package org.swblocks.jbl.util.retry
 

P

printExceptionDetails(PrintWriter) - Method in exception org.swblocks.jbl.eh.BaseException
Obtains the exception details dump, including all properties, for an exception into a print writer.
printExceptionDetails(PrintStream) - Method in exception org.swblocks.jbl.eh.BaseException
Obtains the exception details dump, including all properties, for an exception into a print stream.
printExceptionDetails(Throwable, PrintWriter) - Static method in class org.swblocks.jbl.eh.EhSupport
Obtains the exception details dump, including all properties, for an exception into a print writer.
printExceptionDetails(Throwable, PrintStream) - Static method in class org.swblocks.jbl.eh.EhSupport
Obtains the exception details dump, including all properties, for an exception into a print stream.
PropertiesHolderException - Exception in org.swblocks.jbl.eh
A wrapper exception that will be used for adding the capability for properties and other enhancements to other exceptions that are defined in JDK or in other external libraries.
putProperty(String, Object) - Method in exception org.swblocks.jbl.eh.BaseException
Appends or removes property to the exception details.
putProperty(Throwable, String, Object) - Static method in class org.swblocks.jbl.eh.EhSupport
Associate a property to an exception.

R

RANGE_CHECK - Static variable in class org.swblocks.jbl.util.DateRange
 
removeEldestEntry(Map.Entry) - Method in class org.swblocks.jbl.cache.LruCache
 
Result<T> - Class in org.swblocks.jbl.eh
Result class used to store the outcome of an operation.
Retrier - Class in org.swblocks.jbl.util.retry
The action retry logic encapsulation.
run() - Method in interface org.swblocks.jbl.functional.ThrowsRunnable
Executes the callback.
run(Supplier<Result<T>>, Predicate<Result<T>>) - Method in interface org.swblocks.jbl.util.retry.ActionRetrier
Uses an acceptance condition to determine whether to proceed with the action result.

S

setValue(T) - Method in class org.swblocks.jbl.util.MutableObject
 
start() - Method in interface org.swblocks.jbl.lifecycle.ComponentLifecycle
Start this component.
start() - Method in class org.swblocks.jbl.lifecycle.ComponentLifecycleManager
 
start() - Method in class org.swblocks.jbl.monitoring.Timer
Starts the timer, if already started or stopped, will start again from this point in time.
stop() - Method in interface org.swblocks.jbl.lifecycle.ComponentLifecycle
Stops this component in a synchronous call, such that the component is fully stopped upon return of this method.
stop() - Method in class org.swblocks.jbl.lifecycle.ComponentLifecycleManager
 
stopAndPrintAsReadableString() - Method in class org.swblocks.jbl.monitoring.Timer
Stop the timer and return the duration as a readable string with the units prepended.
success(T) - Static method in class org.swblocks.jbl.eh.Result
Create a success Result object.

T

throwEnhanced(Throwable) - Static method in class org.swblocks.jbl.eh.EhSupport
Enhance an exception if it is not already enhanced and rethrow it.
throwEnhanced(Throwable, String, Object) - Static method in class org.swblocks.jbl.eh.EhSupport
Enhance an exception if it is not already enhanced, add a new property and then rethrow it.
ThrowsConsumer<T> - Interface in org.swblocks.jbl.functional
See docs for Consumer
ThrowsRunnable - Interface in org.swblocks.jbl.functional
A simple callback like Runnable, but the kind that might throw a checked exception.
ThrowsSupplier<T> - Interface in org.swblocks.jbl.functional
See docs for Supplier
TIME_GENERATOR_DEFAULT_CAPPED_DELAY_IN_MILLISECONDS - Static variable in class org.swblocks.jbl.util.retry.Retrier
 
TIME_GENERATOR_DEFAULT_DELAY_IN_MILLISECONDS - Static variable in class org.swblocks.jbl.util.retry.Retrier
 
TIME_GENERATOR_DEFAULT_RETRIES_BETWEEN_STEPS - Static variable in class org.swblocks.jbl.util.retry.Retrier
 
TIME_GENERATOR_DEFAULT_STEP_MULTIPLIER - Static variable in class org.swblocks.jbl.util.retry.Retrier
 
Timer - Class in org.swblocks.jbl.monitoring
Performance timer utility class.
tryGetProperty(String) - Method in exception org.swblocks.jbl.eh.BaseException
Gets property from the exception by name.
tryGetProperty(Throwable, String) - Static method in class org.swblocks.jbl.eh.EhSupport
Tries to obtain the value of a property from an exception (if already associated).
tryGetPropertyAsString(String) - Method in exception org.swblocks.jbl.eh.BaseException
Gets property of the exception as string.
tryGetPropertyAsString(Throwable, String) - Static method in class org.swblocks.jbl.eh.EhSupport
Tries to obtain the value of a property as string from an exception (if already associated).

U

unmodifiableList(List<V>) - Static method in class org.swblocks.jbl.collections.CollectionUtils
Wraps a List with the Collections.unmodifiableList, but only once.
unmodifiableMap(Map<K, V>) - Static method in class org.swblocks.jbl.collections.CollectionUtils
Wraps a Map with the Collections.unmodifiableMap, but only once.

V

validateProperty(String, Object) - Static method in class org.swblocks.jbl.eh.EhCoreProperties
Validates the type of the value of a property and returns the value.

W

with(BiConsumer<B, U>, U) - Method in class org.swblocks.jbl.builders.Builder
Defines an operation and value to be applied to the domain buildFn class.
A B C D E F G H I J L M O P R S T U V W 
Skip navigation links