package com.jarvis.cache.to;

import lombok.Data;

/**
 *
 */
@Data
public class ProcessingTO {

    private volatile long startTime;

    private volatile CacheWrapper<Object> cache;

    private volatile boolean firstFinished = false;

    private volatile Throwable error;

    public ProcessingTO() {
        startTime = System.currentTimeMillis();
    }
    
    public CacheWrapper<Object> getCache() {
        return cache;
    }

    public void setCache(CacheWrapper<Object> cache) {
        this.cache = cache;
    }

    public void setFirstFinished(boolean firstFinished) {
        this.firstFinished = firstFinished;
    }

    public boolean isFirstFinished() {
        return this.firstFinished;
    }
}

@@ -34,19 +34,25 @@
 ort 
-lombok.Data
+java.util.Objects
 ;%0A%0A/
@@ -65,14 +65,8 @@
  */%0A
-@Data%0A
 publ
@@ -665,24 +665,24 @@
 inished() %7B%0A
-
         retu
@@ -710,10 +710,821 @@
 ;%0A    %7D%0A
+    %0A    @Override%0A    public boolean equals(Object o) %7B%0A        if (this == o) return true;%0A        if (o == null %7C%7C getClass() != o.getClass()) return false;%0A        ProcessingTO that = (ProcessingTO) o;%0A        return startTime == that.startTime &&%0A                firstFinished == that.firstFinished &&%0A                Objects.equals(cache, that.cache) &&%0A                Objects.equals(error, that.error);%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return Objects.hash(startTime, cache, firstFinished, error);%0A    %7D%0A%0A    @Override%0A    public String toString() %7B%0A        return %22ProcessingTO%7B%22 +%0A                %22startTime=%22 + startTime +%0A                %22, cache=%22 + cache +%0A                %22, firstFinished=%22 + firstFinished +%0A                %22, error=%22 + error +%0A                '%7D';%0A    %7D%0A
 %7D%0A

Update ProcessingTO.java