Skip to content

Instantly share code, notes, and snippets.


Matias Radzinski mradzinski

Block or report user

Report or block mradzinski

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
mradzinski /
Last active Aug 7, 2019
Deploying a Vertx fat-jar into EC2 (Ubuntu)

Deploying a Vertx fat-jar into EC2 (Ubuntu)

1. Install JDK

  1. sudo apt-get update

  2. Check if java is installed by running java

mradzinski / ExponentialBackoffRetryHandler.kt
Last active Feb 24, 2018
RxJava2 Retry with exponential backoff, maximum amount of retries and evaluator
View ExponentialBackoffRetryHandler.kt
class ExponentialBackoffRetryHandler<T : Throwable>(private val maxRetries: Int = 3,
private val retryDelayMs: Long = 2500,
private val evaluator: (Throwable, Int) -> Boolean = { _, _ -> true }):
Function<Flowable<T>, Publisher<*>> {
companion object {
private const val TAG: String = "ExponentialRetryHandler"
private var retryCount: Int = 0
You can’t perform that action at this time.