mirror of
https://github.com/corda/corda.git
synced 2025-06-19 07:38:22 +00:00
Merged in colljos-kryo-observable-registration (pull request #544)
Kryo registration of Observable with explicit ID.
This commit is contained in:
@ -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 {
|
override fun getRegistration(type: Class<*>): Registration {
|
||||||
if (Observable::class.java.isAssignableFrom(type))
|
if (Observable::class.java.isAssignableFrom(type))
|
||||||
|
Reference in New Issue
Block a user