com.codepoetics.fluvius.flows.FailureKeyCapture Maven / Gradle / Ivy
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