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

com.feingto.iot.common.model.mqtt.SessionStore Maven / Gradle / Ivy

There is a newer version: 2.3.3.RELEASE
Show newest version
package com.feingto.iot.common.model.mqtt;

import io.netty.channel.Channel;
import io.netty.handler.codec.mqtt.MqttPublishMessage;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * MQTT 会话
 *
 * @author longfei
 */
@Data
@Accessors(fluent = true)
public class SessionStore implements Serializable {
    private static final long serialVersionUID = 8867119169147984184L;

    private transient volatile Channel channel;

    /**
     * 是否存储会话
     */
    private boolean cleanSession;

    private long timestamp = System.currentTimeMillis();

    /**
     * 遗嘱消息
     */
    private MqttPublishMessage willMessage;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy