com.github.sseserver.remote.RemoteResponseMessage Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sse-server Show documentation
Show all versions of sse-server Show documentation
Sse server for Spring Boot
package com.github.sseserver.remote;
import com.github.sseserver.qos.Message;
import java.io.Serializable;
import java.util.Collection;
public class RemoteResponseMessage implements Message {
private String id;
private String remoteMessageRepositoryId;
private String eventName;
private Object body;
private int filters;
private String listenerName;
private Collection extends Serializable> tenantIdList;
private Collection extends Serializable> userIdList;
private Collection accessTokenList;
private Collection channelList;
public RemoteResponseMessage() {
}
public String getRemoteMessageRepositoryId() {
return remoteMessageRepositoryId;
}
public void setRemoteMessageRepositoryId(String remoteMessageRepositoryId) {
this.remoteMessageRepositoryId = remoteMessageRepositoryId;
}
@Override
public String getEventName() {
return eventName;
}
public void setEventName(String eventName) {
this.eventName = eventName;
}
@Override
public int getFilters() {
return filters;
}
public void setFilters(int filters) {
this.filters = filters;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (!(o instanceof Message)) {
return false;
}
Message that = (Message) o;
if (id == null) {
return false;
} else {
return id.equals(that.getId());
}
}
@Override
public int hashCode() {
return id == null ? super.hashCode() : id.hashCode();
}
@Override
public String getId() {
return id;
}
@Override
public void setId(String id) {
this.id = id;
}
@Override
public Object getBody() {
return body;
}
public void setBody(Object body) {
this.body = body;
}
@Override
public String getListenerName() {
return listenerName;
}
public void setListenerName(String listenerName) {
this.listenerName = listenerName;
}
@Override
public Collection extends Serializable> getTenantIdList() {
return tenantIdList;
}
public void setTenantIdList(Collection extends Serializable> tenantIdList) {
this.tenantIdList = tenantIdList;
}
@Override
public Collection extends Serializable> getUserIdList() {
return userIdList;
}
public void setUserIdList(Collection extends Serializable> userIdList) {
this.userIdList = userIdList;
}
@Override
public Collection getAccessTokenList() {
return accessTokenList;
}
public void setAccessTokenList(Collection accessTokenList) {
this.accessTokenList = accessTokenList;
}
@Override
public Collection getChannelList() {
return channelList;
}
public void setChannelList(Collection channelList) {
this.channelList = channelList;
}
@Override
public String toString() {
return "RemoteResponseMessage{" +
"id='" + id + '\'' +
", remoteMessageRepositoryId='" + remoteMessageRepositoryId + '\'' +
", eventName='" + eventName + '\'' +
", body=" + body +
", filters=" + filters +
", listenerName='" + listenerName + '\'' +
", tenantIdList=" + tenantIdList +
", userIdList=" + userIdList +
", accessTokenList=" + accessTokenList +
", channelList=" + channelList +
'}';
}
}