All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.oath.micro.server.events.SystemData Maven / Gradle / Ivy

There is a newer version: 1.2.6
Show newest version
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