Override this to configure Kryo creation with a named subclass, e.g.
Override this to configure Kryo creation with a named subclass, e.g. class MyExtern[T] extends Externalizer[T] { override def kryo = myInstantiator } note that if this is not a named class on the classpath, we have to serialize the KryoInstantiator at the same time, which would increase size.
Unfortunately, Java serialization requires mutable objects if you are going to control how the serialization is done.
Unfortunately, Java serialization requires mutable objects if you are going to control how the serialization is done. Use the companion object to creat new instances of this
This is a more fault-tolerant MeatLocker that tries first to do Java serialization, and then falls back to Kryo serialization if that does not work.