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

com.github.shoothzj.sdk.distribute.impl.mongo.dao.MongoLock Maven / Gradle / Ivy

package com.github.shoothzj.sdk.distribute.impl.mongo.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.data.mongodb.core.index.CompoundIndex;
import org.springframework.data.mongodb.core.index.Indexed;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author hezhangjian
 */
@Slf4j
@Document(collection = "T_MongoLock")
@Data
@NoArgsConstructor
@AllArgsConstructor
@CompoundIndex(def = "{'scene':1,'uniqId':1}", name = "mongoLock_index_scene_incrId")
public class MongoLock {

    @Indexed(unique = true)
    private String scene;

    private String uniqId;

    private long expireTime;



}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy