开发者

Read (log)file without locking renaming/moving for other processes

开发者 https://www.devze.com 2023-02-03 05:31 出处:网络
i have to read log-files at the moment th开发者_JS百科ey are written. the problem is, this log-files will be renamed at some point in time and i have to guarantee that this renaming operation is possi

i have to read log-files at the moment th开发者_JS百科ey are written. the problem is, this log-files will be renamed at some point in time and i have to guarantee that this renaming operation is possible/ the java reading process is not locking it.

how to do this


You can copy to RAM and read from copy

0

精彩评论

暂无评论...
验证码 换一张
取 消