Created
May 22, 2019 06:41
-
-
Save vmarcinko/3f6c5c7f3d063b8b8f0fc0b26d274c40 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Embeddable | |
public class QueueingState { | |
public enum Status { | |
NOT_ATTEMPTED, | |
ERROR, | |
SUCCESS | |
} | |
private Status status; | |
private LocalDateTime nextAttemptTime; | |
private int attemptCount; | |
private LocalDateTime lastAttemptTime; | |
private String lastAttemptErrorMessage; | |
public QueueingState() { | |
this.status = Status.NOT_ATTEMPTED; | |
this.attemptCount = 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment