com.infusers.core.sse.requests.ActiveRequestsCountRequest Maven / Gradle / Ivy
package com.infusers.core.sse.requests;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIdentityInfo;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.ObjectIdGenerators;
import com.infusers.core.rabbitmq.IRabbitMQRequest;
import lombok.Data;
import lombok.NoArgsConstructor;
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIdentityInfo(generator = ObjectIdGenerators.IntSequenceGenerator.class, property = "@id", scope = ActiveRequestsCountRequest.class)
@Data
@NoArgsConstructor // Lombok annotation to generate a default constructor
public class ActiveRequestsCountRequest implements IRabbitMQRequest, Serializable {
private long count;
private String eventSource;
public ActiveRequestsCountRequest(long count, String eventSource) {
super();
this.count = count;
this.eventSource = eventSource;
}
public String getEventSource() {
return eventSource;
}
public void setEventSource(String eventSource) {
this.eventSource = eventSource;
}
@Override
public String toString() {
return "ActiveRequestsCountRequest [count=" + count + ", eventSource=" + eventSource + "]";
}
public long getCount() {
return count;
}
public void setCount(long count) {
this.count = count;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy