| Package | Description |
|---|---|
| org.usefultoys.slf4j.meter |
| Modifier and Type | Method and Description |
|---|---|
Meter |
Meter.ctx(boolean condition,
String trueName)
Adds an entry to the context map if conditions is true.
|
Meter |
Meter.ctx(boolean condition,
String trueName,
String falseName)
Adds an entry to the context map if conditions is true or false.
|
Meter |
Meter.ctx(String name)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
boolean value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
Boolean value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
double value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
Double value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
float value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
Float value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
int value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
Integer value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
long value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
Long value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
Object object)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
String value)
Adds an entry to the context map.
|
Meter |
Meter.ctx(String name,
String format,
Object... args)
Adds an entry to the context map.
|
Meter |
Meter.fail(Object cause)
Refuses the meter in order to claim incomplete or inconsistent execution of the task represented by the meter.
|
static Meter |
Meter.getCurrentInstance() |
static Meter |
MeterFactory.getCurrentMeter()
Returns the most recently started Meter on the current thread.
|
static Meter |
MeterFactory.getCurrentSubMeter(String suboperationName)
Creates a new Meter whose name is subordinated under the hierarchy last started meter onthe current thread.
|
static Meter |
MeterFactory.getMeter(Class<?> clazz)
Returns a Meter with given category equal to the class name, which will also be the logger name.
|
static Meter |
MeterFactory.getMeter(Class<?> clazz,
String operationName)
Returns a Meter with given category equal to the class name, which will also be the logger name.
|
static Meter |
MeterFactory.getMeter(org.slf4j.Logger logger)
Returns a Meter with category equal to the logger name and as meter category.
|
static Meter |
MeterFactory.getMeter(org.slf4j.Logger logger,
String operationName)
Returns a Meter with given category equal to the logger name.
|
static Meter |
MeterFactory.getMeter(String category)
Returns a Meter with given category, which will also be also the logger name.
|
Meter |
Meter.inc()
Notifies the meter that one more iteration or step completed that make up the task successfully.
|
Meter |
Meter.incBy(long increment)
Notifies the meter that more of iterations or steps that make up the task completed successfully.
|
Meter |
Meter.incTo(long currentIteration)
Notifies the meter that a number of iterations or steps that make up the task already completed successfully.
|
Meter |
Meter.iterations(long expectedIterations)
Configures the Meter for an operation made up of iterations or steps.
|
Meter |
Meter.limitMilliseconds(long timeLimit)
Configures the Meter with an threshold for reasonable, typical execution time for the operation.
|
Meter |
Meter.m(String message)
Configures the Meter with a human readable message that explains the operations's purpose.
|
Meter |
Meter.m(String format,
Object... args)
Configures the Meter with a human readable message that explains the operations's purpose.
|
Meter |
Meter.ok()
Confirms the meter in order to claim successful completion of the task represented by the meter.
|
Meter |
Meter.ok(Object pathId)
Confirms the meter in order to claim successful completion of the task represented by the meter.
|
Meter |
Meter.path(Object pathId) |
Meter |
Meter.progress()
Allow informing about successful completion of iterations or steps making up the task represented by the meter.
|
Meter |
Meter.reject(Object cause)
Confirms the meter in order to claim unsuccessful completion of the task represented by the meter.
|
Meter |
Meter.start()
Notifies the meter in order to claim immediate execution start of the task represented by the meter.
|
Meter |
Meter.sub(String suboperationName)
Creates a new Meter for an operation that belongs to the opeartion of this Meter.
|
Meter |
Meter.unctx(String name)
Removes an entry from the context map.
|
Copyright © 2010–2025. All rights reserved.