A B C E G H I L M N Q R S T V 
All Classes All Packages

A

addTimerStartedListener(ListenableTimer.StateChangeListener) - Method in interface com.pervasivecode.utils.concurrent.timing.ListenableTimer
Add a StateChangeListener to the list of listeners that will be invoked when the timer is started.
addTimerStartedListener(ListenableTimer.StateChangeListener) - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
 
addTimerStoppedListener(ListenableTimer.StateChangeListener) - Method in interface com.pervasivecode.utils.concurrent.timing.ListenableTimer
Add a StateChangeListener to the list of listeners that will be invoked when the timer is stopped.
addTimerStoppedListener(ListenableTimer.StateChangeListener) - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
 
awaitTermination(long, TimeUnit) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 

B

BLOCK - com.pervasivecode.utils.concurrent.executors.BlockingExecutorService.Operation
 
BlockingExecutorService - Class in com.pervasivecode.utils.concurrent.executors
Wrap a ThreadPoolExecutor with an ExecutorService implementation that blocks the thread attempting to submit a task when the task queue is full, rather than rejecting the submitted task (as ThreadPoolExecutor does).
BlockingExecutorService(BlockingExecutorServiceConfig) - Constructor for class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
Create a BlockingExecutorService with the specified configuration.
BlockingExecutorService.Operation - Enum in com.pervasivecode.utils.concurrent.executors
The kind of time-consuming activity that the BlockingExecutorService is engaged in, for use as a timer-type value in an MultistageStopwatch that is measuring how much time is being spent in each activity.
BlockingExecutorServiceConfig - Class in com.pervasivecode.utils.concurrent.executors
This object holds configuration information for a BlockingExecutorService instance.
BlockingExecutorServiceConfig.Builder - Class in com.pervasivecode.utils.concurrent.executors
This object will build a BlockingExecutorServiceConfig instance.
build() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig.Builder
 
build() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleTimingSummary.Builder
 
builder() - Static method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig
Create an object that will build a BlockingExecutorServiceConfig instance.
builder() - Static method in class com.pervasivecode.utils.concurrent.timing.SimpleTimingSummary
 

C

com.pervasivecode.utils.concurrent.example - package com.pervasivecode.utils.concurrent.example
 
com.pervasivecode.utils.concurrent.executors - package com.pervasivecode.utils.concurrent.executors
 
com.pervasivecode.utils.concurrent.timing - package com.pervasivecode.utils.concurrent.timing
 
createAndStart(CurrentNanosSource) - Static method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
Create an instance and start it.
currentNanosSource() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig
A time source with nanoseconds precision.

E

elapsed() - Method in interface com.pervasivecode.utils.concurrent.timing.QueryableTimer
What is the elapsed time of this timer?
elapsed() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
 
equals(Object) - Method in class com.pervasivecode.utils.concurrent.timing.HistogramBasedStopwatch
 
equals(Object) - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
 
equals(Object) - Method in class com.pervasivecode.utils.concurrent.timing.SimpleMultistageStopwatch
 
ExampleApplication - Interface in com.pervasivecode.utils.concurrent.example
A wrapper around a command-line application that makes it easy to run via Cucumber.
execute(Runnable) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 

G

getName() - Method in class com.pervasivecode.utils.concurrent.timing.HistogramBasedStopwatch
Get the name of this stopwatch.
getTimerTypes() - Method in interface com.pervasivecode.utils.concurrent.timing.MultistageStopwatch
Get an Iterable that will provide all of the enum values that this timer handles.
GRACEFUL_SHUTDOWN - com.pervasivecode.utils.concurrent.executors.BlockingExecutorService.Operation
 

H

hasBeenStarted() - Method in interface com.pervasivecode.utils.concurrent.timing.QueryableTimer
Has the timer been started?
hasBeenStarted() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
 
hashCode() - Method in class com.pervasivecode.utils.concurrent.timing.HistogramBasedStopwatch
 
hashCode() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
 
hashCode() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleMultistageStopwatch
 
HistogramBasedStopwatch<T extends Enum<?>> - Class in com.pervasivecode.utils.concurrent.timing
This type of MultistageStopwatch populates a timing Histogram for each type of operation with counts representing how long those operations took.
HistogramBasedStopwatch(String, CurrentNanosSource, T[], Supplier<MutableHistogram<Long>>) - Constructor for class com.pervasivecode.utils.concurrent.timing.HistogramBasedStopwatch
Create a new instance.

I

invokeAll(Collection<? extends Callable<T>>) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 
invokeAny(Collection<? extends Callable<T>>) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 
isRunning() - Method in interface com.pervasivecode.utils.concurrent.timing.QueryableTimer
Is the timer currently running?
isRunning() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
 
isShutdown() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 
isStopped() - Method in interface com.pervasivecode.utils.concurrent.timing.QueryableTimer
Has the timer been stopped?
isStopped() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
 
isTerminated() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 

L

ListenableTimer - Interface in com.pervasivecode.utils.concurrent.timing
A timer that can be observed by a StateChangeListener, which can be invoked when the timer starts or stops (or both).
ListenableTimer.StateChangeListener - Interface in com.pervasivecode.utils.concurrent.timing
A listener that will be notified when the state of a ListenableTimer changes.

M

MultistageStopwatch<T extends Enum<?>> - Interface in com.pervasivecode.utils.concurrent.timing
This stopwatch manages multiple concurrent timers tracking each stage of a user-defined multi-stage operation, aggregating the resulting duration values.
MultistageStopwatch.TimingSummary - Interface in com.pervasivecode.utils.concurrent.timing
A summary of the timer activity for one stage of multistage operation.

N

nameFormat() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig
The format to use to name worker threads.
numStartStopCycles() - Method in interface com.pervasivecode.utils.concurrent.timing.MultistageStopwatch.TimingSummary
Get the number of times that all timers belonging to this stopwatch have been started and then stopped.
numStartStopCycles() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleTimingSummary
 
numThreads() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig
The number of threads that should be created by the BlockingExecutorService for use in running submitted tasks.

Q

QueryableTimer - Interface in com.pervasivecode.utils.concurrent.timing
A timer that can be asked about its current state.
QUEUE - com.pervasivecode.utils.concurrent.executors.BlockingExecutorService.Operation
 
queueSize() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig
The size of the task queue that should be created to hold pending tasks until they can be run by a worker thread.

R

runExample(PrintWriter) - Method in interface com.pervasivecode.utils.concurrent.example.ExampleApplication
 
runExample(PrintWriter) - Method in class com.pervasivecode.utils.concurrent.example.TriathlonTimingExample
 

S

setCurrentNanosSource(CurrentNanosSource) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig.Builder
 
setNameFormat(String) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig.Builder
 
setNumStartStopCycles(long) - Method in class com.pervasivecode.utils.concurrent.timing.SimpleTimingSummary.Builder
 
setNumThreads(int) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig.Builder
 
setQueueSize(int) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig.Builder
 
setStopwatch(MultistageStopwatch<BlockingExecutorService.Operation>) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig.Builder
 
setTotalElapsedTime(Duration) - Method in class com.pervasivecode.utils.concurrent.timing.SimpleTimingSummary.Builder
 
shutdown() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 
shutdownNow() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
Shut down this executor service, and attempt to cancel running tasks.
SimpleActiveTimer - Class in com.pervasivecode.utils.concurrent.timing
A timer implementation that is stoppable, queryable, and listenable.
SimpleActiveTimer(CurrentNanosSource) - Constructor for class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
Create an instance that is not started yet.
SimpleMultistageStopwatch<T extends Enum<?>> - Class in com.pervasivecode.utils.concurrent.timing
This type of MultistageStopwatch keeps a total of elapsed time used by all timers for each type of operation, along with counts representing how long those operations took.
SimpleMultistageStopwatch(CurrentNanosSource, T[]) - Constructor for class com.pervasivecode.utils.concurrent.timing.SimpleMultistageStopwatch
Create a new instance.
SimpleTimingSummary - Class in com.pervasivecode.utils.concurrent.timing
A basic TimingSummary implememtation, with validation.
SimpleTimingSummary.Builder - Class in com.pervasivecode.utils.concurrent.timing
This object will build a SimpleTimingSummary instance.
startTimer() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
Start the timer.
startTimer(T) - Method in class com.pervasivecode.utils.concurrent.timing.HistogramBasedStopwatch
 
startTimer(T) - Method in interface com.pervasivecode.utils.concurrent.timing.MultistageStopwatch
Start a timer tracking one instance of the specified activity.
startTimer(T) - Method in class com.pervasivecode.utils.concurrent.timing.SimpleMultistageStopwatch
 
stateChanged() - Method in interface com.pervasivecode.utils.concurrent.timing.ListenableTimer.StateChangeListener
Handle the change of the timer's state.
StoppableTimer - Interface in com.pervasivecode.utils.concurrent.timing
A timer that can be stopped.
stopTimer() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleActiveTimer
 
stopTimer() - Method in interface com.pervasivecode.utils.concurrent.timing.StoppableTimer
Stop the timer, and obtain the elapsed time since it was started.
stopwatch() - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorServiceConfig
A MultistageStopwatch<BlockingExecutorService.Operation> that will be used to track the amount of time that tasks spend in various parts of the BlockingExecutorService's lifecycle.
submit(Runnable) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 
submit(Runnable, T) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 
submit(Callable<T>) - Method in class com.pervasivecode.utils.concurrent.executors.BlockingExecutorService
 
summarize(T) - Method in interface com.pervasivecode.utils.concurrent.timing.MultistageStopwatch
Obtain a summary of the timer activity for a given stage of the activity described by the parameterized type T.

T

timingHistogramFor(T) - Method in class com.pervasivecode.utils.concurrent.timing.HistogramBasedStopwatch
Get a copy of the histogram of duration values, for the stage identified by the timerType.
totalElapsedTime() - Method in interface com.pervasivecode.utils.concurrent.timing.MultistageStopwatch.TimingSummary
Get the total amount of time used by all start-stop cycles of all timers belonging to this stopwatch.
totalElapsedTime() - Method in class com.pervasivecode.utils.concurrent.timing.SimpleTimingSummary
 
TriathlonTimingExample - Class in com.pervasivecode.utils.concurrent.example
Example of how to use MultistageStopwatch, MultistageStopwatch.TimingSummary, and DurationFormatter to time multiple stages of activity by multiple concurrent actors, and to represent the captured timing information in a human-readable form.
TriathlonTimingExample() - Constructor for class com.pervasivecode.utils.concurrent.example.TriathlonTimingExample
 

V

valueOf(String) - Static method in enum com.pervasivecode.utils.concurrent.executors.BlockingExecutorService.Operation
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.pervasivecode.utils.concurrent.executors.BlockingExecutorService.Operation
Returns an array containing the constants of this enum type, in the order they are declared.
A B C E G H I L M N Q R S T V 
All Classes All Packages