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

org.joyqueue.model.domain.SimplifiedBrokeMessage Maven / Gradle / Ivy

/**
 * Copyright 2019 The JoyQueue Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.joyqueue.model.domain;

import java.util.Map;

public class SimplifiedBrokeMessage {

    /**
     *  ip + port
     *
     **/
    private String queryId;
    /**
     *
     * partition+partition index
     *
     **/
    private String id;

    /**
     * receive time on broker
     * 精确到毫秒
     *
     **/
    private long sendTime;

    /**
     * relative time offset to sendTime,when write to file
     * 存储时间
     *
     **/
    private int storeTime;

    /**
     * bussiness id
     **/

    private String businessId;

    private Map  attributes;
    /**
     *
     * 消息体
     **/
    private String body;

    /**
     * 是否已消费
     **/
    private  boolean flag;

    public String getQueryId() {
        return queryId;
    }

    public void setQueryId(String queryId) {
        this.queryId = queryId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public long getSendTime() {
        return sendTime;
    }

    public void setSendTime(long sendTime) {
        this.sendTime = sendTime;
    }

    public int getStoreTime() {
        return storeTime;
    }

    public void setStoreTime(int storeTime) {
        this.storeTime = storeTime;
    }

    public String getBusinessId() {
        return businessId;
    }

    public Map getAttributes() {
        return attributes;
    }

    public void setAttributes(Map attributes) {
        this.attributes = attributes;
    }

    public void setBusinessId(String businessId) {
        this.businessId = businessId;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy