com.oath.micro.server.events.SystemData Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micro-events Show documentation
Show all versions of micro-events Show documentation
Opinionated rest microservices
package com.oath.micro.server.events;
import java.util.Map;
import java.util.Random;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.ToString;
import lombok.Builder;
import lombok.experimental.Wither;
@Builder
@Wither
@AllArgsConstructor
@Getter
@ToString
@EqualsAndHashCode(of = { "correlationId" })
public class SystemData {
private static final Random r = new Random();
private final long processed;
private final long errors;
private final Map dataMap;
private String correlationId;
private SystemData(long processed, long errors, Map dataMap) {
this.processed = processed;
this.errors = errors;
this.dataMap = dataMap;
this.correlationId = "" + r.nextLong();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy