You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
476 B
Java
26 lines
476 B
Java
package cokr.xit.fims.base;
|
|
|
|
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
|
|
|
|
import cokr.xit.foundation.data.DataObject;
|
|
import lombok.Getter;
|
|
import lombok.Setter;
|
|
|
|
@Setter
|
|
@Getter
|
|
public class SseEntity {
|
|
|
|
private long createdAt;
|
|
|
|
private SseEmitter emitter;
|
|
|
|
private DataObject progress;
|
|
|
|
public SseEntity(SseEmitter emitter) {
|
|
this.createdAt = System.currentTimeMillis();
|
|
this.emitter = emitter;
|
|
this.progress = new DataObject();
|
|
}
|
|
|
|
}
|