Class ThreadLocalSerializer


  • public class ThreadLocalSerializer
    extends com.esotericsoftware.kryo.Serializer<java.lang.ThreadLocal<?>>
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.ThreadLocal<?> read​(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Input input, java.lang.Class<java.lang.ThreadLocal<?>> type)  
      void write​(com.esotericsoftware.kryo.Kryo kryo, com.esotericsoftware.kryo.io.Output output, java.lang.ThreadLocal<?> tl)  
      • Methods inherited from class com.esotericsoftware.kryo.Serializer

        copy, getAcceptsNull, isImmutable, setAcceptsNull, setGenerics, setImmutable
      • Methods inherited from class java.lang.Object

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

      • PRINT_WARNINGS_ON_UNSERIALIZABLE_THREAD_LOCAL

        public static boolean PRINT_WARNINGS_ON_UNSERIALIZABLE_THREAD_LOCAL
    • Constructor Detail

      • ThreadLocalSerializer

        public ThreadLocalSerializer()
    • Method Detail

      • write

        public void write​(com.esotericsoftware.kryo.Kryo kryo,
                          com.esotericsoftware.kryo.io.Output output,
                          java.lang.ThreadLocal<?> tl)
        Specified by:
        write in class com.esotericsoftware.kryo.Serializer<java.lang.ThreadLocal<?>>
      • read

        public java.lang.ThreadLocal<?> read​(com.esotericsoftware.kryo.Kryo kryo,
                                             com.esotericsoftware.kryo.io.Input input,
                                             java.lang.Class<java.lang.ThreadLocal<?>> type)
        Specified by:
        read in class com.esotericsoftware.kryo.Serializer<java.lang.ThreadLocal<?>>