public class ConfiguredInstantiator extends KryoInstantiator
| Modifier and Type | Field and Description |
|---|---|
protected KryoInstantiator |
delegate |
static java.lang.String |
KEY
Key we use to configure this class.
|
| Constructor and Description |
|---|
ConfiguredInstantiator(Config conf) |
| Modifier and Type | Method and Description |
|---|---|
protected static KryoInstantiator |
deserialize(com.esotericsoftware.kryo.Kryo k,
java.lang.String base64Value) |
static java.lang.String[] |
fastSplitKey(java.lang.String key)
Java's string split is very expensive due to regexes.
|
KryoInstantiator |
getDelegate()
Return the delegated KryoInstantiator
|
com.esotericsoftware.kryo.Kryo |
newKryo()
Calls through to the delegate
|
protected static java.lang.String |
serialize(com.esotericsoftware.kryo.Kryo k,
KryoInstantiator ki) |
static void |
setReflect(Config conf,
java.lang.Class<? extends KryoInstantiator> instClass)
In this mode, we are just refecting to another delegated class.
|
static void |
setSerialized(Config conf,
java.lang.Class<? extends KryoInstantiator> reflector,
KryoInstantiator ki)
If this reflector needs config to be set, that should be done PRIOR to making this call.
|
static void |
setSerialized(Config conf,
KryoInstantiator ki)
Use the default KryoInstantiator to serialize the KryoInstantiator ki
same as: setSerialized(conf, KryoInstantiator.class, ki)
|
setClassLoader, setInstantiatorStrategy, setReferences, setRegistrationRequired, setThreadContextClassLoader, withRegistrarprotected final KryoInstantiator delegate
public static final java.lang.String KEY
public ConfiguredInstantiator(Config conf) throws ConfigurationException
ConfigurationExceptionpublic com.esotericsoftware.kryo.Kryo newKryo()
newKryo in class KryoInstantiatorpublic KryoInstantiator getDelegate()
public static void setReflect(Config conf, java.lang.Class<? extends KryoInstantiator> instClass)
public static void setSerialized(Config conf, KryoInstantiator ki) throws ConfigurationException
ConfigurationExceptionpublic static void setSerialized(Config conf, java.lang.Class<? extends KryoInstantiator> reflector, KryoInstantiator ki) throws ConfigurationException
ConfigurationExceptionprotected static KryoInstantiator deserialize(com.esotericsoftware.kryo.Kryo k, java.lang.String base64Value) throws ConfigurationException
ConfigurationExceptionprotected static java.lang.String serialize(com.esotericsoftware.kryo.Kryo k,
KryoInstantiator ki)
public static java.lang.String[] fastSplitKey(java.lang.String key)