.
This commit is contained in:
parent
df5dba8384
commit
220ff0a3b0
7
pom.xml
7
pom.xml
@ -4,15 +4,16 @@
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<groupId>groupId</groupId>
|
||||
<groupId>com.lxyer</groupId>
|
||||
<artifactId>redtimer</artifactId>
|
||||
<version>1.0-SNAPSHOT</version>
|
||||
<version>0.1.0</version>
|
||||
<packaging>jar</packaging>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>4.12</version>
|
||||
<scope>compile</scope>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
|
@ -29,7 +29,7 @@ public class TimerTest {
|
||||
timerExecutor.add(t1, t2);
|
||||
|
||||
//60s后修改a1 每2s执行一次
|
||||
Thread.sleep(1000 * 60);
|
||||
Thread.sleep(1000);
|
||||
//task = timerExecutor.get("a1");
|
||||
if (t1 != null){
|
||||
t1.setScheduled(new ScheduledCycle(2000 * 1));
|
||||
@ -37,7 +37,7 @@ public class TimerTest {
|
||||
}
|
||||
|
||||
|
||||
Thread.sleep(1500_000000);
|
||||
Thread.sleep(5000);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user