com.power4j.fist.message.topic.TopicMessage Maven / Gradle / Ivy
The newest version!
package com.power4j.fist.message.topic;
import lombok.Getter;
/**
* @author CJ ([email protected])
* @since 1.0
*/
@Getter
public class TopicMessage {
/**
* Topic name
*/
private final CharSequence name;
/**
* Event payload
*/
private final T payload;
public TopicMessage(CharSequence name, T payload) {
this.name = name;
this.payload = payload;
}
}