Class SessionDataCodec

  • All Implemented Interfaces:
    io.lettuce.core.codec.RedisCodec<java.lang.String,​com.aspectran.core.component.session.SessionData>

    public class SessionDataCodec
    extends java.lang.Object
    implements io.lettuce.core.codec.RedisCodec<java.lang.String,​com.aspectran.core.component.session.SessionData>
    SessionDataCodec encodes the session data sent to Redis, and decodes the session data in the command output.

    Created: 2019/12/08

    • Constructor Summary

      Constructors 
      Constructor Description
      SessionDataCodec​(java.util.Set<java.lang.String> nonPersistentAttributes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String decodeKey​(java.nio.ByteBuffer bytes)  
      com.aspectran.core.component.session.SessionData decodeValue​(java.nio.ByteBuffer bytes)  
      java.nio.ByteBuffer encodeKey​(java.lang.String key)  
      java.nio.ByteBuffer encodeValue​(com.aspectran.core.component.session.SessionData value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SessionDataCodec

        public SessionDataCodec​(java.util.Set<java.lang.String> nonPersistentAttributes)
    • Method Detail

      • decodeKey

        public java.lang.String decodeKey​(java.nio.ByteBuffer bytes)
        Specified by:
        decodeKey in interface io.lettuce.core.codec.RedisCodec<java.lang.String,​com.aspectran.core.component.session.SessionData>
      • decodeValue

        public com.aspectran.core.component.session.SessionData decodeValue​(java.nio.ByteBuffer bytes)
        Specified by:
        decodeValue in interface io.lettuce.core.codec.RedisCodec<java.lang.String,​com.aspectran.core.component.session.SessionData>
      • encodeKey

        public java.nio.ByteBuffer encodeKey​(java.lang.String key)
        Specified by:
        encodeKey in interface io.lettuce.core.codec.RedisCodec<java.lang.String,​com.aspectran.core.component.session.SessionData>
      • encodeValue

        public java.nio.ByteBuffer encodeValue​(com.aspectran.core.component.session.SessionData value)
        Specified by:
        encodeValue in interface io.lettuce.core.codec.RedisCodec<java.lang.String,​com.aspectran.core.component.session.SessionData>