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, logMIN_REGISTRATION_VALUE| Constructor and Description |
|---|
KryoClassListRegistrar(List<Class<?>> classes) |
| Modifier and Type | Method and Description |
|---|---|
List<com.esotericsoftware.kryo.Registration> |
getRegistrations() |
void |
setInitialValue(int initialValue)
Set the inital ID value.
|
registerTypespublic void setInitialValue(int initialValue)
initialValue - the initial valuepublic List<com.esotericsoftware.kryo.Registration> getRegistrations()
Registration provided