-
- All Implemented Interfaces:
-
ai.platon.pulsar.session.PulsarSession,java.lang.AutoCloseable
public class BasicPulsarSession extends AbstractPulsarSession
Created by vincent on 18-1-17. Copyright @ 2013-2023 Platon AI. All rights reserved
-
-
Field Summary
Fields Modifier and Type Field Description private final ImmutableConfigunmodifiedConfigprivate final BeanFactorysessionBeanFactoryprivate final Stringdisplayprivate final BooleanisActiveprivate final GlobalCacheFactoryglobalCacheFactoryprivate final GlobalCacheglobalCacheprivate final ConcurrentExpiringLRUCache<String, WebPage>pageCacheprivate final ConcurrentExpiringLRUCache<String, FeaturedDocument>documentCacheprivate final AbstractPulsarContextcontextprivate final VolatileConfigsessionConfigprivate final Integerid
-
Constructor Summary
Constructors Constructor Description BasicPulsarSession(AbstractPulsarContext context, VolatileConfig sessionConfig, Integer id)
-
Method Summary
Modifier and Type Method Description ImmutableConfiggetUnmodifiedConfig()BeanFactorygetSessionBeanFactory()The scoped bean factory: for each volatileConfig object, there is a bean factory StringgetDisplay()final BooleangetIsActive()GlobalCacheFactorygetGlobalCacheFactory()GlobalCachegetGlobalCache()ConcurrentExpiringLRUCache<String, WebPage>getPageCache()ConcurrentExpiringLRUCache<String, FeaturedDocument>getDocumentCache()AbstractPulsarContextgetContext()The pulsar context VolatileConfiggetSessionConfig()The session scope volatile config, every setting is supposed to be changed at any time and any place IntegergetId()The session id. -
Methods inherited from class ai.platon.pulsar.session.BasicPulsarSession
close, delete, disablePDCache, equals, exists, export, export, export, export, exportTo, fetchState, flush, get, get, getContent, getContentAsString, getOrNull, getOrNull, getSessionBean, getVariable, hashCode, inject, load, load, load, load, load, load, load, loadAll, loadAll, loadAll, loadAll, loadAll, loadAll, loadAll, loadAllAsync, loadAllAsync, loadAllAsync, loadAllAsync, loadAllAsync, loadAllAsync, loadAllAsync, loadAsync, loadAsync, loadAsync, loadAsync, loadAsync, loadAsync, loadAsync, loadDeferred, loadDeferred, loadDeferred, loadDeferred, loadDeferred, loadDocument, loadDocument, loadDocument, loadDocument, loadDocument, loadDocument, loadDocument, loadOutPages, loadOutPages, loadOutPages, loadOutPages, loadOutPagesAsync, loadOutPagesAsync, loadResource, loadResource, loadResource, loadResourceDeferred, loadResourceDeferred, loadResourceDeferred, normalize, normalize, normalize, normalize, normalize, normalize, normalize, normalize, normalize, normalize, normalize, normalize, normalizeOrNull, normalizeOrNull, open, options, parse, parse, persist, property, property, putSessionBean, registerClosable, scrape, scrape, scrape, scrape, scrape, scrape, scrape, scrape, scrapeOutPages, scrapeOutPages, scrapeOutPages, scrapeOutPages, scrapeOutPages, scrapeOutPages, scrapeOutPages, scrapeOutPages, setVariable, submit, submit, submit, submit, submit, submitAll, submitAll, submitAll, submitAll, submitAll, submitOutPages, submitOutPages, submitOutPages, submitOutPages, toString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BasicPulsarSession
BasicPulsarSession(AbstractPulsarContext context, VolatileConfig sessionConfig, Integer id)
-
-
Method Detail
-
getUnmodifiedConfig
ImmutableConfig getUnmodifiedConfig()
-
getSessionBeanFactory
BeanFactory getSessionBeanFactory()
The scoped bean factory: for each volatileConfig object, there is a bean factory
-
getDisplay
String getDisplay()
-
getIsActive
final Boolean getIsActive()
-
getGlobalCacheFactory
GlobalCacheFactory getGlobalCacheFactory()
-
getGlobalCache
GlobalCache getGlobalCache()
-
getPageCache
ConcurrentExpiringLRUCache<String, WebPage> getPageCache()
-
getDocumentCache
ConcurrentExpiringLRUCache<String, FeaturedDocument> getDocumentCache()
-
getContext
AbstractPulsarContext getContext()
The pulsar context
-
getSessionConfig
VolatileConfig getSessionConfig()
The session scope volatile config, every setting is supposed to be changed at any time and any place
-
-
-
-