class Externalizer[T] extends Externalizable with KryoSerializable
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.
- Alphabetic
- By Inheritance
- Externalizer
- KryoSerializable
- Externalizable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Externalizer()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def get: T
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getOption: Option[T]
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def javaWorks: Boolean
- def kryo: KryoInstantiator
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.
- Attributes
- protected
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def read(kryo: Kryo, input: Input): Unit
- Definition Classes
- Externalizer → KryoSerializable
- def readExternal(in: ObjectInput): Unit
- Definition Classes
- Externalizer → Externalizable
- def set(it: T): Unit
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
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def write(kryo: Kryo, output: Output): Unit
- Definition Classes
- Externalizer → KryoSerializable
- def writeExternal(out: ObjectOutput): Unit
- Definition Classes
- Externalizer → Externalizable
- def writeJava(out: ObjectOutput): Boolean
- Attributes
- protected
- def writeKryo(out: ObjectOutput, kryo: KryoInstantiator): Boolean
- Attributes
- protected
- def writeKryo(out: ObjectOutput): Boolean
- Attributes
- protected