Class InfinispanSessionData

  • All Implemented Interfaces:
    java.io.Serializable

    public class InfinispanSessionData
    extends SessionData
    InfinispanSessionData Specialization of SessionData to hold the attributes as a serialized byte array. This is necessary because to deserialize the attributes correctly, we need to know which classloader to use, which is normally provided as the thread context classloader. However, infinispan marshalling uses a thread pool and thus these threads have no knowledge of the correct classloader to use.
    See Also:
    Serialized Form
    • Field Detail

      • _serializedAttributes

        protected byte[] _serializedAttributes
    • Constructor Detail

      • InfinispanSessionData

        public InfinispanSessionData​(java.lang.String id,
                                     java.lang.String cpath,
                                     java.lang.String vhost,
                                     long created,
                                     long accessed,
                                     long lastAccessed,
                                     long maxInactiveMs)
      • InfinispanSessionData

        public InfinispanSessionData​(java.lang.String id,
                                     java.lang.String cpath,
                                     java.lang.String vhost,
                                     long created,
                                     long accessed,
                                     long lastAccessed,
                                     long maxInactiveMs,
                                     java.util.Map<java.lang.String,​java.lang.Object> attributes)
    • Method Detail

      • getSerializedAttributes

        public byte[] getSerializedAttributes()
      • setSerializedAttributes

        public void setSerializedAttributes​(byte[] serializedAttributes)
      • deserializeAttributes

        public void deserializeAttributes()
                                   throws java.lang.ClassNotFoundException,
                                          java.io.IOException
        Throws:
        java.lang.ClassNotFoundException
        java.io.IOException
      • serializeAttributes

        public void serializeAttributes()
                                 throws java.io.IOException
        Throws:
        java.io.IOException