All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.codepoetics.fluvius.flows.FailureKeyCapture Maven / Gradle / Ivy

There is a newer version: 1.10
Show newest version
package com.codepoetics.fluvius.flows;

import com.codepoetics.fluvius.api.scratchpad.Key;

/**
 * Part of the fluent API for defining flows that recover from failures.
 */
public final class FailureKeyCapture {
  private final Key failureKey;

  FailureKeyCapture(Key failureKey) {
    this.failureKey = failureKey;
  }

  public  RecoveryResultKeyCapture to(Key recoveryResultKey) {
    return new RecoveryResultKeyCapture<>(failureKey, recoveryResultKey);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy