public class MemoryBasedContextService extends AbstractInjectionBasedContextService
This service is thread-safe.
lock, logger
Constructor and Description |
---|
MemoryBasedContextService(rootContext : Context,
logger : LoggingService,
injector : com.google.inject.Injector,
factory : ContextFactory,
factories : javax.inject.Provider<Factories>)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Collection<Context> |
getAllContexts()
Replies all the known contexts.
|
protected Map<UUID,Context> |
getContextInternalStructure()
Replies the internal data structure for storing the contexts.
|
newContextInstance
createContext, createContextWithoutRegistration, createLogger, getContext, getRootContext, onStart, onStop, removeContext
doStart, doStop
addListener, awaitRunning, awaitRunning, awaitTerminated, awaitTerminated, doCancelStart, failureCause, isRunning, notifyFailed, notifyStarted, notifyStopped, startAsync, state, stopAsync, toString
@Inject
public new
(rootContext : Context,
logger : LoggingService,
injector : com.google.inject.Injector,
factory : ContextFactory,
factories : javax.inject.Provider<Factories>)
rootContext
- the root context.logger
- the logging service to be used.injector
- is the injector.factory
- is the factory of contexts.factories
- the provider of factories tool.@Pure
protected def
getContextInternalStructure() : Map<UUID,Context>
AbstractContextService
This function is not thread-safe.
getContextInternalStructure
in class AbstractContextService
@Pure
public def
getAllContexts() : Collection<Context>
ContextService
Copyright © 2021 the original authors or authors.