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

com.infusers.core.sse.requests.ActiveRequestsCountRequest Maven / Gradle / Ivy

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