mirror of
https://github.com/corda/corda.git
synced 2025-03-10 22:44:20 +00:00
Merged in colljos-kryo-observable-registration (pull request #544)
Kryo registration of Observable with explicit ID.
This commit is contained in:
commit
bc3550e3e6
@ -229,7 +229,8 @@ private class RPCKryo(observableSerializer: Serializer<Observable<Any>>? = null)
|
||||
})
|
||||
}
|
||||
|
||||
val observableRegistration: Registration? = if (observableSerializer != null) register(Observable::class.java, observableSerializer) else null
|
||||
// TODO: workaround to prevent Observable registration conflict when using plugin registered kyro classes
|
||||
val observableRegistration: Registration? = if (observableSerializer != null) register(Observable::class.java, observableSerializer, 10000) else null
|
||||
|
||||
override fun getRegistration(type: Class<*>): Registration {
|
||||
if (Observable::class.java.isAssignableFrom(type))
|
||||
|
Loading…
x
Reference in New Issue
Block a user