public interface Context extends PropertyContainer
Modifier and Type | Method and Description |
---|---|
void |
addScheduledFuture(java.util.concurrent.ScheduledFuture<?> scheduledFuture) |
long |
getBirthTime()
The time at which this context was created, expressed in
millisecond elapsed since the epoch (1.1.1970).
|
java.lang.Object |
getConfigurationLock()
Object used for synchronization purposes.
|
java.util.Map<java.lang.String,java.lang.String> |
getCopyOfPropertyMap()
Get a copy of the property map
|
java.util.concurrent.ExecutorService |
getExecutorService()
Deprecated.
use instead
|
java.lang.String |
getName()
Contexts are named objects.
|
java.lang.Object |
getObject(java.lang.String key)
A Context can act as a store for various objects used by LOGBack
components.
|
java.lang.String |
getProperty(java.lang.String key)
Get the property of this context.
|
java.util.concurrent.ScheduledExecutorService |
getScheduledExecutorService()
Returns the ScheduledExecutorService for this context.
|
StatusManager |
getStatusManager()
Return the StatusManager instance in use.
|
void |
putObject(java.lang.String key,
java.lang.Object value)
Store an object under 'key'.
|
void |
putProperty(java.lang.String key,
java.lang.String value)
Set a property of this context.
|
void |
register(LifeCycle component)
Register a component that participates in the context's life cycle.
|
void |
setName(java.lang.String name)
The name of the context can be set only once.
|
StatusManager getStatusManager()
StatusManager
instance in use.java.lang.Object getObject(java.lang.String key)
void putObject(java.lang.String key, java.lang.Object value)
key
- value
- java.lang.String getProperty(java.lang.String key)
getProperty
in interface PropertyContainer
void putProperty(java.lang.String key, java.lang.String value)
java.util.Map<java.lang.String,java.lang.String> getCopyOfPropertyMap()
getCopyOfPropertyMap
in interface PropertyContainer
java.lang.String getName()
void setName(java.lang.String name)
name
- long getBirthTime()
java.lang.Object getConfigurationLock()
java.util.concurrent.ScheduledExecutorService getScheduledExecutorService()
java.util.concurrent.ExecutorService getExecutorService()
void register(LifeCycle component)
All components registered via this method will be stopped and removed from the context when the context is reset.
component
- the subject componentvoid addScheduledFuture(java.util.concurrent.ScheduledFuture<?> scheduledFuture)
Copyright © 2010 - 2020 Adobe. All Rights Reserved