public class MemoryPersistenceService extends java.lang.Object implements PersistenceService
Constructor and Description |
---|
MemoryPersistenceService()
constructor
|
Modifier and Type | Method and Description |
---|---|
void |
disposeSession(java.lang.String session)
callback to dispose a given session previously created but for which a persistence context has not been created.
|
java.util.Set<java.lang.String> |
getSessions()
returns the list of sessions that have been persisted.
|
void |
initialize(ConfigService configService)
callback to initialize the persistence service.
|
PersistenceContext |
newContext(ConfigContext context, boolean isLoad)
creates a new
PersistenceContext for the given ConfigContext . |
public void initialize(ConfigService configService) throws java.lang.Exception
initialize
in interface PersistenceService
java.lang.Exception
public java.util.Set<java.lang.String> getSessions() throws java.lang.Exception
getSessions
in interface PersistenceService
java.lang.Exception
public void disposeSession(java.lang.String session)
disposeSession
in interface PersistenceService
public PersistenceContext newContext(ConfigContext context, boolean isLoad) throws java.lang.Exception
PersistenceContext
for the given ConfigContext
.newContext
in interface PersistenceService
isLoad
- whether the persistence context is created for a session being loaded or created.java.lang.Exception