From e6033fb706cfd287a8880dce21169eff9192f018 Mon Sep 17 00:00:00 2001 From: xyli Date: Fri, 3 Mar 2023 14:12:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EonOverflow=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/test/java/TestFileWatch.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/test/java/TestFileWatch.java b/src/test/java/TestFileWatch.java index 07b6f6e..1d8f1a0 100644 --- a/src/test/java/TestFileWatch.java +++ b/src/test/java/TestFileWatch.java @@ -13,7 +13,16 @@ public class TestFileWatch { public static void main(String[] args) { File file = new File("D:\\SystemDocument\\Desktop\\top.txt"); WatchMonitor watchMonitor = WatchUtil.create(file); - + + + + + + + @Override + public void onOverflow(WatchEvent event, Path currentPath) { + System.out.println("onOverflow"); + } }); } } -- Gitee