Class AnnotationConfigPulsarContext
-
- All Implemented Interfaces:
-
ai.platon.pulsar.skeleton.context.PulsarContext,java.lang.AutoCloseable
public class AnnotationConfigPulsarContext extends BasicPulsarContext
-
-
Field Summary
Fields Modifier and Type Field Description private final AnnotationConfigApplicationContextapplicationContextprivate final BooleanisActiveprivate final Integeridprivate final ImmutableConfigconfigurationprivate final ChainedUrlNormalizerurlNormalizerprivate final ChainedUrlNormalizerurlNormalizerOrNullprivate final WebDbwebDbprivate final GlobalCacheFactoryglobalCacheFactoryprivate final BatchFetchComponentfetchComponentprivate final ParseComponentparseComponentprivate final UpdateComponentupdateComponentprivate final LoadComponentloadComponentprivate final GlobalCacheglobalCacheprivate final BrowserManagerbrowserManagerprivate final TaskLoopstaskLoopsprivate final LongstartTimeprivate final ConcurrentSkipListMap<Long, AbstractPulsarSession>sessions
-
Constructor Summary
Constructors Constructor Description AnnotationConfigPulsarContext(Class<?> componentClasses)AnnotationConfigPulsarContext(AnnotationConfigApplicationContext applicationContext)
-
Method Summary
Modifier and Type Method Description AnnotationConfigApplicationContextgetApplicationContext()BasicPulsarSessioncreateSession()Create a ai.platon.pulsar.skeleton.session.BasicPulsarSession. BasicPulsarSessioncreateSession(PulsarSettings settings)Create a pulsar session -
Methods inherited from class ai.platon.pulsar.skeleton.context.support.AbstractPulsarContext
await, capture, chat, chat, close, closeSession, delete, delete, exists, fetchState, flush, get, get, getBean, getBean, getBeanOrNull, getBeanOrNull, getBrowserManager, getConfiguration, getContent, getContentAsString, getFetchComponent, getGlobalCache, getGlobalCacheFactory, getId, getLoadComponent, getOrCreateSession, getOrCreateSession, getOrNull, getOrNull, getParseComponent, getSessions, getStartTime, getTaskLoops, getUpdateComponent, getUrlNormalizer, getUrlNormalizerOrNull, getWebDb, isActive, load, load, load, loadAll, loadAll, loadAllAsync, loadAsync, loadDeferred, normalize, normalize, normalize, normalize, normalizeOrNull, normalizeOrNull, open, parse, persist, registerClosable, registerShutdownHook, scan, scan, scan, submit, submitAll -
Methods inherited from class ai.platon.pulsar.skeleton.context.PulsarContext
launchDefaultBrowser, launchPrototypeBrowser, launchRandomTempBrowser, launchSystemDefaultBrowser -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AnnotationConfigPulsarContext
AnnotationConfigPulsarContext(Class<?> componentClasses)
-
AnnotationConfigPulsarContext
AnnotationConfigPulsarContext(AnnotationConfigApplicationContext applicationContext)
-
-
Method Detail
-
getApplicationContext
AnnotationConfigApplicationContext getApplicationContext()
-
createSession
BasicPulsarSession createSession()
Create a ai.platon.pulsar.skeleton.session.BasicPulsarSession.
NOTE: The session is not a SQLSession, use execute, executeQuery to access ai.platon.pulsar.ql.SQLSession.
-
createSession
BasicPulsarSession createSession(PulsarSettings settings)
Create a pulsar session
-
-
-
-