Class CoherenceSessionStore.CoherenceHttpSession
java.lang.Object
io.micronaut.coherence.httpsession.CoherenceSessionStore.CoherenceHttpSession
- All Implemented Interfaces:
com.tangosol.io.pof.PortableObject,io.micronaut.core.convert.ConversionServiceProvider,io.micronaut.core.convert.value.ConvertibleValues<Object>,io.micronaut.core.convert.value.MutableConvertibleValues<Object>,io.micronaut.core.value.ValueResolver<CharSequence>,io.micronaut.session.Session,Serializable,Iterable<Map.Entry<String,Object>>
- Enclosing class:
- CoherenceSessionStore
public static class CoherenceSessionStore.CoherenceHttpSession
extends Object
implements io.micronaut.session.Session, com.tangosol.io.pof.PortableObject, Serializable
A representation of a http session.
- See Also:
-
Field Summary
Fields inherited from interface io.micronaut.core.convert.value.ConvertibleValues
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor necessary for serialization.CoherenceHttpSession(String id, Duration maxInactiveInterval) Constructs a newCoherenceHttpSession. -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.convert.value.MutableConvertibleValues<Object>clear()<T> Optional<T>get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) @NonNull Instant@NonNull StringgetId()@NonNull InstantbooleanbooleanisNew()names()io.micronaut.core.convert.value.MutableConvertibleValues<Object>put(CharSequence key, @Nullable Object value) voidreadExternal(com.tangosol.io.pof.PofReader pofReader) io.micronaut.core.convert.value.MutableConvertibleValues<Object>remove(CharSequence key) io.micronaut.session.SessionsetLastAccessedTime(Instant instant) io.micronaut.session.SessionsetMaxInactiveInterval(Duration duration) voidsetNew(boolean aNew) Set whether session is a newly created and unsaved.values()voidwriteExternal(com.tangosol.io.pof.PofWriter pofWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, forEach, getConversionService, getValue, getValueType, isEmpty, iterator, subMap, subMap, subMapMethods inherited from interface java.lang.Iterable
forEach, spliteratorMethods inherited from interface io.micronaut.core.convert.value.MutableConvertibleValues
putAll, putAllMethods inherited from interface io.micronaut.session.Session
get, isExpiredMethods inherited from interface io.micronaut.core.value.ValueResolver
get, get, get
-
Constructor Details
-
CoherenceHttpSession
public CoherenceHttpSession()Default constructor necessary for serialization. -
CoherenceHttpSession
Constructs a newCoherenceHttpSession.- Parameters:
id- the ID of this sessionmaxInactiveInterval- the maximum time a session may be idle before being expired
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceio.micronaut.session.Session
-
getCreationTime
- Specified by:
getCreationTimein interfaceio.micronaut.session.Session
-
getLastAccessedTime
- Specified by:
getLastAccessedTimein interfaceio.micronaut.session.Session
-
setLastAccessedTime
- Specified by:
setLastAccessedTimein interfaceio.micronaut.session.Session
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveIntervalin interfaceio.micronaut.session.Session
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveIntervalin interfaceio.micronaut.session.Session
-
isNew
public boolean isNew()- Specified by:
isNewin interfaceio.micronaut.session.Session
-
setNew
public void setNew(boolean aNew) Set whether session is a newly created and unsaved.- Parameters:
aNew- is the session new or not
-
isModified
public boolean isModified()- Specified by:
isModifiedin interfaceio.micronaut.session.Session
-
put
public io.micronaut.core.convert.value.MutableConvertibleValues<Object> put(CharSequence key, @Nullable @Nullable Object value) - Specified by:
putin interfaceio.micronaut.core.convert.value.MutableConvertibleValues<Object>
-
remove
- Specified by:
removein interfaceio.micronaut.core.convert.value.MutableConvertibleValues<Object>
-
clear
- Specified by:
clearin interfaceio.micronaut.core.convert.value.MutableConvertibleValues<Object>
-
names
- Specified by:
namesin interfaceio.micronaut.core.convert.value.ConvertibleValues<Object>
-
values
- Specified by:
valuesin interfaceio.micronaut.core.convert.value.ConvertibleValues<Object>
-
get
public <T> Optional<T> get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) - Specified by:
getin interfaceio.micronaut.core.value.ValueResolver<CharSequence>
-
readExternal
- Specified by:
readExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-
writeExternal
- Specified by:
writeExternalin interfacecom.tangosol.io.pof.PortableObject- Throws:
IOException
-