public class RecoveryDescriptor
extends java.lang.Object
| Constructor and Description |
|---|
RecoveryDescriptor()
Default constructor for Jackson deserialization.
|
RecoveryDescriptor(io.flamingock.api.RecoveryStrategy strategy)
Creates a new recovery descriptor with the specified strategy.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
static RecoveryDescriptor |
fromStrategy(io.flamingock.api.RecoveryStrategy strategy)
Factory method to create a RecoveryDescriptor from a strategy.
|
static RecoveryDescriptor |
getDefault() |
io.flamingock.api.RecoveryStrategy |
getStrategy()
Gets the recovery strategy.
|
int |
hashCode() |
boolean |
isAlwaysRetry() |
void |
setStrategy(io.flamingock.api.RecoveryStrategy strategy)
Sets the recovery strategy.
|
java.lang.String |
toString() |
public RecoveryDescriptor()
public RecoveryDescriptor(io.flamingock.api.RecoveryStrategy strategy)
strategy - the recovery strategypublic static RecoveryDescriptor getDefault()
public static RecoveryDescriptor fromStrategy(io.flamingock.api.RecoveryStrategy strategy)
strategy - the recovery strategypublic io.flamingock.api.RecoveryStrategy getStrategy()
public void setStrategy(io.flamingock.api.RecoveryStrategy strategy)
strategy - the recovery strategypublic boolean isAlwaysRetry()
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object