package cn.autoform.web.controller.resumable.redis.lock;
|
|
import java.io.Serializable;
|
|
import lombok.AllArgsConstructor;
|
import lombok.Data;
|
import lombok.EqualsAndHashCode;
|
import lombok.NoArgsConstructor;
|
|
/**
|
* 锁类
|
* @author wangyuxin
|
*
|
*/
|
@Data
|
@AllArgsConstructor
|
@NoArgsConstructor
|
@EqualsAndHashCode(of="lockInfo")
|
public class Lock implements Serializable{
|
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 8811304440312972451L;
|
|
|
/**
|
* 锁信息
|
*/
|
private String lockInfo;
|
|
/**
|
* 钥匙信息
|
*/
|
private Key key;
|
|
/**
|
* 超时时间
|
*/
|
private Long timeOut;
|
|
public Lock(String lockInfo) {
|
this(lockInfo, null, null);
|
}
|
|
}
|