Properly cleanup the remote object storage/cache
This commit is contained in:
parent
d40c080311
commit
01ab0bf1d8
|
@ -244,7 +244,7 @@ class RemoteObjectStorage(val logger: Logger) {
|
|||
}
|
||||
}
|
||||
|
||||
fun close() {
|
||||
fun clear() {
|
||||
objectMap.clear()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -83,4 +83,8 @@ open class RmiObjectCache(val logger: Logger) {
|
|||
internal fun restoreImplObjects(implObjects: List<Pair<Int, Any>>) {
|
||||
this.implObjects.restoreAll(implObjects)
|
||||
}
|
||||
|
||||
internal open fun clear() {
|
||||
this.implObjects.clear()
|
||||
}
|
||||
}
|
||||
|
|
|
@ -374,8 +374,9 @@ class RmiSupportConnection<CONNECTION: Connection> : RmiObjectCache {
|
|||
return proxyObject as Iface
|
||||
}
|
||||
|
||||
internal fun clear() {
|
||||
override fun clear() {
|
||||
super.clear()
|
||||
proxyObjects.clear()
|
||||
remoteObjectCreationCallbacks.close()
|
||||
remoteObjectCreationCallbacks.clear()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue