reconcile

open override fun reconcile(config: ServerConfig): Result<Runnable?>

Creates a closure that can be run to reconcile the server's state with the new configuration.

When a server's configuration is updated this method is called generate a closure that can reconcile the current state with the new configuration. This can either be called immediately, or scheduled as a future task. For the docker broker executing the closure normally results in the server being stopped, removed, and recreated with the new configuration.

Return

Result of a Runnable that will perform the reconciliation, or an error.

Parameters

config

New server configuration to reconcile