com.github.lontime.extredisson.common.EndpointMessage Maven / Gradle / Ivy
The newest version!
package com.github.lontime.extredisson.common;
import com.github.lontime.base.serial.model.Message;
/**
* MessageWithId.
* @author lontime
* @since 1.0
*/
public class EndpointMessage {
private final Message message;
private final String id;
public EndpointMessage(String id, Message message) {
this.message = message;
this.id = id;
}
public Message getMessage() {
return message;
}
public String getId() {
return id;
}
public static EndpointMessage create(String id, Message message) {
return new EndpointMessage(id, message);
}
}