Class SessionDataSerializer

  • All Implemented Interfaces:
    com.hazelcast.nio.serialization.Serializer, com.hazelcast.nio.serialization.StreamSerializer<SessionData>

    public class SessionDataSerializer
    extends java.lang.Object
    implements com.hazelcast.nio.serialization.StreamSerializer<SessionData>
    SessionDataSerializer Handles serialization on behalf of the SessionData object, and ensures that we use jetty's classloading knowledge.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int __TYPEID  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()  
      int getTypeId()  
      SessionData read​(com.hazelcast.nio.ObjectDataInput in)  
      void write​(com.hazelcast.nio.ObjectDataOutput out, SessionData data)  
      • Methods inherited from class java.lang.Object

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

      • SessionDataSerializer

        public SessionDataSerializer()
    • Method Detail

      • getTypeId

        public int getTypeId()
        Specified by:
        getTypeId in interface com.hazelcast.nio.serialization.Serializer
      • destroy

        public void destroy()
        Specified by:
        destroy in interface com.hazelcast.nio.serialization.Serializer
      • write

        public void write​(com.hazelcast.nio.ObjectDataOutput out,
                          SessionData data)
                   throws java.io.IOException
        Specified by:
        write in interface com.hazelcast.nio.serialization.StreamSerializer<SessionData>
        Throws:
        java.io.IOException
      • read

        public SessionData read​(com.hazelcast.nio.ObjectDataInput in)
                         throws java.io.IOException
        Specified by:
        read in interface com.hazelcast.nio.serialization.StreamSerializer<SessionData>
        Throws:
        java.io.IOException