net.corda.core.node / CordaPluginRegistry / registerRPCKryoTypes

registerRPCKryoTypes

open fun registerRPCKryoTypes(kryo: <ERROR CLASS>): Boolean

Optionally register types with Kryo for use over RPC, as we lock down the types that can be serialised in this particular use case. For example, if you add an RPC interface that carries some contract states back and forth, you need to register those classes here using the register method on Kryo.

TODO: Kryo and likely the requirement to register classes here will go away when we replace the serialization implementation.



Return
true if you register types, otherwise you will be filtered out of the list of plugins considered in future.