close

override fun close()

Closes the store once nothing reads it any more, which the host that opened it calls once the node and its queries stopped: what it holds of its own, not the resources the host gave it (StoreConfig.resources), which their owner closes. Each port it opened that is AutoCloseable is closed, in reverse order of opening, then closeStore runs, every one even when another fails; the first failure is thrown, the later ones suppressed by it (Closing). Closing it again does nothing, and a closed store opens no port.