Add exponential backoff to P2P messaging retry (#2975)

This commit is contained in:
Thomas Schroeter
2018-04-26 13:58:41 +01:00
committed by GitHub
parent 5dc71fc350
commit 2ff3939e2e
9 changed files with 43 additions and 12 deletions

View File

@ -16,6 +16,7 @@ import java.net.Proxy
import java.net.URL
import java.nio.file.Path
import java.nio.file.Paths
import java.time.Duration
import java.time.Instant
import java.time.LocalDate
import java.time.temporal.Temporal
@ -104,6 +105,7 @@ private fun Config.getSingleValue(path: String, type: KType): Any? {
Double::class -> getDouble(path)
Boolean::class -> getBoolean(path)
LocalDate::class -> LocalDate.parse(getString(path))
Duration::class -> getDuration(path)
Instant::class -> Instant.parse(getString(path))
NetworkHostAndPort::class -> NetworkHostAndPort.parse(getString(path))
Path::class -> Paths.get(getString(path))