public interface Context extends PropertyContainer
| Modifier and Type | Method and Description |
|---|---|
long |
getBirthTime()
The time at which this context was created, expressed in millisecond elapsed since the epoch (1.1.1970).
|
Object |
getConfigurationLock()
Object used for synchronization purposes.
|
Map |
getCopyOfPropertyMap()
Get a copy of the property map
|
ExecutorService |
getExecutorService()
Every context has an ExecutorService which be invoked to execute certain tasks in a separate thread.
|
String |
getName()
Contexts are named objects.
|
Object |
getObject(String
A Context can act as a store for various objects used by LOGBack components.
|
String |
getProperty(String
Get the property of this context.
|
StatusManager |
getStatusManager()
Return the StatusManager instance in use.
|
void |
putObject(String
Store an object under 'key'.
|
void |
putProperty(String
Set a property of this context.
|
void |
register(LifeCycle
Register a component that participates in the context's life cycle.
|
void |
setName(String
The name of the context can be set only once.
|
StatusManagergetStatusManager()
StatusManager instance in use.
ObjectgetObject(String key)
void putObject(Stringkey, Object value)
key -
value -
Map<String ,String > getCopyOfPropertyMap()
getCopyOfPropertyMap in interface
PropertyContainer
StringgetName()
void setName(Stringname)
name -
long getBirthTime()
ObjectgetConfigurationLock()
ExecutorServicegetExecutorService()
void register(LifeCyclecomponent)
All components registered via this method will be stopped and removed from the context when the context is reset.
component - the subject component