public class KryoShimServiceLoader extends Object
KryoShimService.| Modifier and Type | Field and Description |
|---|---|
static String |
KRYO_SHIM_SERVICE
Set this system property to the fully-qualified name of a
KryoShimService
package-and-classname to force it into service. |
| Constructor and Description |
|---|
KryoShimServiceLoader() |
| Modifier and Type | Method and Description |
|---|---|
static void |
applyConfiguration(Configuration configuration) |
static void |
close() |
static <T> T |
readClassAndObject(InputStream inputStream)
A loose abstraction of
org.apache.tinkerpop.shaded.kryo.Kryo#readClassAndObject,
where the input parameter is source. |
static byte[] |
writeClassAndObjectToBytes(Object object)
A loose abstraction of
org.apache.tinkerpop.shaded.kryo.Kryo#writeClassAndObject,
where the output parameter is an internally-created ByteArrayOutputStream. |
public static final String KRYO_SHIM_SERVICE
KryoShimService
package-and-classname to force it into service. Setting this property causes the
priority-selection mechanism (KryoShimService.getPriority()) to be ignored.public static void applyConfiguration(Configuration configuration)
public static void close()
public static byte[] writeClassAndObjectToBytes(Object object)
org.apache.tinkerpop.shaded.kryo.Kryo#writeClassAndObject,
where the output parameter is an internally-created ByteArrayOutputStream. Returns
the byte array underlying that stream.object - an object for which the instance and class are serializedpublic static <T> T readClassAndObject(InputStream inputStream)
org.apache.tinkerpop.shaded.kryo.Kryo#readClassAndObject,
where the input parameter is source. Returns the deserialized object.T - the type to which the deserialized object is cast as it is returnedinputStream - an input stream containing data for a serialized object class and instanceCopyright © 2013–2019 Apache Software Foundation. All rights reserved.