Skip to content

Instantly share code, notes, and snippets.

@vmarcinko
Created May 22, 2019 06:41
Show Gist options
  • Save vmarcinko/3f6c5c7f3d063b8b8f0fc0b26d274c40 to your computer and use it in GitHub Desktop.
Save vmarcinko/3f6c5c7f3d063b8b8f0fc0b26d274c40 to your computer and use it in GitHub Desktop.
@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