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
ConstructorDescriptionDefault 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 String
getId()
@NonNull Instant
boolean
boolean
isNew()
names()
io.micronaut.core.convert.value.MutableConvertibleValues<Object>
put
(CharSequence key, @Nullable Object value) void
readExternal
(com.tangosol.io.pof.PofReader pofReader) io.micronaut.core.convert.value.MutableConvertibleValues<Object>
remove
(CharSequence key) io.micronaut.session.Session
setLastAccessedTime
(Instant instant) io.micronaut.session.Session
setMaxInactiveInterval
(Duration duration) void
setNew
(boolean aNew) Set whether session is a newly created and unsaved.values()
void
writeExternal
(com.tangosol.io.pof.PofWriter pofWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.convert.value.ConvertibleValues
asMap, asMap, asProperties, contains, forEach, getConversionService, getValue, getValueType, isEmpty, iterator, subMap, subMap, subMap
Methods inherited from interface java.lang.Iterable
forEach, spliterator
Methods inherited from interface io.micronaut.core.convert.value.MutableConvertibleValues
putAll, putAll
Methods inherited from interface io.micronaut.session.Session
get, isExpired
Methods 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:
getId
in interfaceio.micronaut.session.Session
-
getCreationTime
- Specified by:
getCreationTime
in interfaceio.micronaut.session.Session
-
getLastAccessedTime
- Specified by:
getLastAccessedTime
in interfaceio.micronaut.session.Session
-
setLastAccessedTime
- Specified by:
setLastAccessedTime
in interfaceio.micronaut.session.Session
-
setMaxInactiveInterval
- Specified by:
setMaxInactiveInterval
in interfaceio.micronaut.session.Session
-
getMaxInactiveInterval
- Specified by:
getMaxInactiveInterval
in interfaceio.micronaut.session.Session
-
isNew
public boolean isNew()- Specified by:
isNew
in 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:
isModified
in interfaceio.micronaut.session.Session
-
put
public io.micronaut.core.convert.value.MutableConvertibleValues<Object> put(CharSequence key, @Nullable @Nullable Object value) - Specified by:
put
in interfaceio.micronaut.core.convert.value.MutableConvertibleValues<Object>
-
remove
- Specified by:
remove
in interfaceio.micronaut.core.convert.value.MutableConvertibleValues<Object>
-
clear
- Specified by:
clear
in interfaceio.micronaut.core.convert.value.MutableConvertibleValues<Object>
-
names
- Specified by:
names
in interfaceio.micronaut.core.convert.value.ConvertibleValues<Object>
-
values
- Specified by:
values
in interfaceio.micronaut.core.convert.value.ConvertibleValues<Object>
-
get
public <T> Optional<T> get(CharSequence name, io.micronaut.core.convert.ArgumentConversionContext<T> conversionContext) - Specified by:
get
in interfaceio.micronaut.core.value.ValueResolver<CharSequence>
-
readExternal
- Specified by:
readExternal
in interfacecom.tangosol.io.pof.PortableObject
- Throws:
IOException
-
writeExternal
- Specified by:
writeExternal
in interfacecom.tangosol.io.pof.PortableObject
- Throws:
IOException
-