|
|
@@ -1,9 +1,8 @@
|
|
|
import com.nju.edu.logTracking.LogConsumer;
|
|
|
|
|
|
-import java.io.IOException;
|
|
|
-
|
|
|
public class Test {
|
|
|
- public static void main(String[] args) throws IOException, InterruptedException {
|
|
|
+ public static void main(String[] args) {
|
|
|
+ System.out.println("start running");
|
|
|
LogConsumer myConsumer = new LogConsumer() {
|
|
|
@Override
|
|
|
public void run(String value) {
|
|
|
@@ -11,9 +10,5 @@ public class Test {
|
|
|
}
|
|
|
};
|
|
|
myConsumer.processLog();
|
|
|
- while(true){
|
|
|
- System.out.println("running");
|
|
|
- Thread.sleep(2000);
|
|
|
- }
|
|
|
}
|
|
|
}
|