public class KryoClassListRegistrar extends AbstractKryoRegistrar
KryoRegistrar
used to validateRegistration 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(Class<?>... classes) |
KryoClassListRegistrar(List<Class<?>> classes) |
Modifier and Type | Method and Description |
---|---|
List<com.esotericsoftware.kryo.Registration> |
getRegistrations() |
void |
setInitialValue(int initialValue)
Set the initial ID value.
|
registerTypes
public KryoClassListRegistrar(Class<?>... classes)
classes
- the vararg of classes to validateRegistrationpublic void setInitialValue(int initialValue)
initialValue
- the initial valuepublic List<com.esotericsoftware.kryo.Registration> getRegistrations()
Registration
provided