release branch 0.0.4
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
package com.github.houbb.lock.test.core;
|
||||
|
||||
import com.github.houbb.lock.api.core.ILock;
|
||||
import com.github.houbb.lock.redis.core.LockSpin;
|
||||
import com.github.houbb.lock.redis.core.LockSpinRe;
|
||||
import com.github.houbb.lock.core.core.LockSpinRe;
|
||||
|
||||
/**
|
||||
* @author binbin.hou
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
package com.github.houbb.lock.test.core;
|
||||
|
||||
import com.github.houbb.lock.api.core.ILock;
|
||||
import com.github.houbb.lock.redis.core.LockSpin;
|
||||
import com.github.houbb.lock.core.core.LockSpin;
|
||||
|
||||
/**
|
||||
* @author binbin.hou
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.github.houbb.lock.test.core;
|
||||
|
||||
import com.github.houbb.heaven.util.util.DateUtil;
|
||||
import com.github.houbb.lock.api.core.ILock;
|
||||
import com.github.houbb.lock.redis.core.LockWaitNotify;
|
||||
import com.github.houbb.lock.core.core.LockWaitNotify;
|
||||
import com.github.houbb.log.integration.core.Log;
|
||||
import com.github.houbb.log.integration.core.LogFactory;
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.github.houbb.lock.test.core;
|
||||
|
||||
import com.github.houbb.heaven.util.util.DateUtil;
|
||||
import com.github.houbb.lock.api.core.ILock;
|
||||
import com.github.houbb.lock.redis.core.LockWaitNotify;
|
||||
import com.github.houbb.lock.core.core.LockWaitNotify;
|
||||
import com.github.houbb.log.integration.core.Log;
|
||||
import com.github.houbb.log.integration.core.LogFactory;
|
||||
|
||||
|
||||
@@ -1,14 +1,10 @@
|
||||
package com.github.houbb.lock.test.core;
|
||||
|
||||
import com.github.houbb.heaven.util.util.DateUtil;
|
||||
import com.github.houbb.lock.api.core.ILock;
|
||||
import com.github.houbb.lock.redis.core.LockWaitNotify;
|
||||
import com.github.houbb.lock.redis.core.LockWaitNotifyRe;
|
||||
import com.github.houbb.lock.core.core.LockWaitNotifyRe;
|
||||
import com.github.houbb.log.integration.core.Log;
|
||||
import com.github.houbb.log.integration.core.LogFactory;
|
||||
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* @author binbin.hou
|
||||
* @since 1.0.0
|
||||
|
||||
@@ -2,7 +2,7 @@ package com.github.houbb.lock.test.redis;
|
||||
|
||||
import com.github.houbb.lock.api.core.ILock;
|
||||
import com.github.houbb.lock.api.support.IOperator;
|
||||
import com.github.houbb.lock.redis.bs.LockRedisBs;
|
||||
import com.github.houbb.lock.core.bs.LockBs;
|
||||
import com.github.houbb.lock.redis.support.operator.JedisOperator;
|
||||
import org.junit.Ignore;
|
||||
import org.junit.Test;
|
||||
@@ -21,7 +21,7 @@ public class LockRedisTest {
|
||||
IOperator operator = new JedisOperator(jedis);
|
||||
|
||||
// 获取锁
|
||||
ILock lock = LockRedisBs.newInstance().operator(operator).lock();
|
||||
ILock lock = LockBs.newInstance(operator).lock();
|
||||
|
||||
try {
|
||||
boolean lockResult = lock.tryLock();
|
||||
|
||||
Reference in New Issue
Block a user