public class KryoClassListRegistrar extends AbstractKryoRegistrar
KryoRegistrar
used to register a
list of Java classes. This assigns a sequential registration ID starting with an initial value (50 by default), but
may be configured. This is easiest to set up but requires that every server node be configured with the identical
list in the same order.kryo, log
MIN_REGISTRATION_VALUE
Constructor and Description |
---|
KryoClassListRegistrar(java.util.List<java.lang.Class<?>> classes) |
Modifier and Type | Method and Description |
---|---|
java.util.List<com.esotericsoftware.kryo.Registration> |
getRegistrations() |
void |
setInitialValue(int initialValue)
Set the inital ID value.
|
register, registerTypes
public KryoClassListRegistrar(java.util.List<java.lang.Class<?>> classes)
classes
- the list of classes to registerpublic void setInitialValue(int initialValue)
initialValue
- the initial valuepublic java.util.List<com.esotericsoftware.kryo.Registration> getRegistrations()
getRegistrations
in interface KryoRegistrar
getRegistrations
in class AbstractKryoRegistrar
Registration
provided