Package org.kie.api.runtime.conf
Class PersistedSessionOption
java.lang.Object
org.kie.api.runtime.conf.PersistedSessionOption
- All Implemented Interfaces:
Serializable,Option,SingleValueOption,KieSessionOption,SingleValueKieSessionOption
A class for the session persistence configuration.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumNONE : On restoring a session, filter firing based on StoredObject.isPropagated ACTIVATION_KEY : On restoring a session, filter firing based on StoredObject.isPropagated and persisted ActivationKeystatic enumstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe property name for the clock type configurationFields inherited from interface org.kie.api.runtime.conf.KieSessionOption
TYPE -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic PersistedSessionOptionfromSession(long sessionId) longinthashCode()booleanstatic PersistedSessionOptiontoString()withActivationStrategy(PersistedSessionOption.ActivationStrategy activationStrategy) withPersistenceObjectsStrategy(PersistedSessionOption.PersistenceObjectsStrategy persistenceObjectsStrategy) withPersistenceStrategy(PersistedSessionOption.PersistenceStrategy persistenceStrategy) withSafepointStrategy(PersistedSessionOption.SafepointStrategy safepointStrategy) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.kie.api.runtime.conf.KieSessionOption
typeMethods inherited from interface org.kie.api.conf.Option
propertyName
-
Field Details
-
PROPERTY_NAME
The property name for the clock type configuration- See Also:
-
-
Method Details
-
newSession
-
fromSession
-
getPropertyName
- Specified by:
getPropertyNamein interfaceOption- Returns:
- the property name for this option
-
getSessionId
public long getSessionId() -
getPersistenceStrategy
-
getPersistenceObjectsStrategy
-
withPersistenceObjectsStrategy
public PersistedSessionOption withPersistenceObjectsStrategy(PersistedSessionOption.PersistenceObjectsStrategy persistenceObjectsStrategy) -
withPersistenceStrategy
public PersistedSessionOption withPersistenceStrategy(PersistedSessionOption.PersistenceStrategy persistenceStrategy) -
getSafepointStrategy
-
withSafepointStrategy
public PersistedSessionOption withSafepointStrategy(PersistedSessionOption.SafepointStrategy safepointStrategy) -
getActivationStrategy
-
withActivationStrategy
public PersistedSessionOption withActivationStrategy(PersistedSessionOption.ActivationStrategy activationStrategy) -
isNewSession
public boolean isNewSession() -
toString
-
equals
-
hashCode
public int hashCode()
-