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:
  • Constructor Details

    • CoherenceHttpSession

      public CoherenceHttpSession()
    • CoherenceHttpSession

      public CoherenceHttpSession(String id, Duration maxActiveInterval)
  • Method Details

    • getId

      @NonNull public @NonNull String getId()
      Specified by:
      getId in interface io.micronaut.session.Session
    • getCreationTime

      @NonNull public @NonNull Instant getCreationTime()
      Specified by:
      getCreationTime in interface io.micronaut.session.Session
    • getLastAccessedTime

      @NonNull public @NonNull Instant getLastAccessedTime()
      Specified by:
      getLastAccessedTime in interface io.micronaut.session.Session
    • setLastAccessedTime

      public io.micronaut.session.Session setLastAccessedTime(Instant instant)
      Specified by:
      setLastAccessedTime in interface io.micronaut.session.Session
    • setMaxInactiveInterval

      public io.micronaut.session.Session setMaxInactiveInterval(Duration duration)
      Specified by:
      setMaxInactiveInterval in interface io.micronaut.session.Session
    • getMaxInactiveInterval

      public Duration getMaxInactiveInterval()
      Specified by:
      getMaxInactiveInterval in interface io.micronaut.session.Session
    • isNew

      public boolean isNew()
      Specified by:
      isNew in interface io.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 interface io.micronaut.session.Session
    • put

      public io.micronaut.core.convert.value.MutableConvertibleValues<Object> put(CharSequence key, @Nullable @Nullable Object value)
      Specified by:
      put in interface io.micronaut.core.convert.value.MutableConvertibleValues<Object>
    • remove

      public io.micronaut.core.convert.value.MutableConvertibleValues<Object> remove(CharSequence key)
      Specified by:
      remove in interface io.micronaut.core.convert.value.MutableConvertibleValues<Object>
    • clear

      public io.micronaut.core.convert.value.MutableConvertibleValues<Object> clear()
      Specified by:
      clear in interface io.micronaut.core.convert.value.MutableConvertibleValues<Object>
    • names

      public Set<String> names()
      Specified by:
      names in interface io.micronaut.core.convert.value.ConvertibleValues<Object>
    • values

      public Collection<Object> values()
      Specified by:
      values in interface io.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 interface io.micronaut.core.value.ValueResolver<CharSequence>
    • readExternal

      public void readExternal(com.tangosol.io.pof.PofReader pofReader) throws IOException
      Specified by:
      readExternal in interface com.tangosol.io.pof.PortableObject
      Throws:
      IOException
    • writeExternal

      public void writeExternal(com.tangosol.io.pof.PofWriter pofWriter) throws IOException
      Specified by:
      writeExternal in interface com.tangosol.io.pof.PortableObject
      Throws:
      IOException