public abstract class BaseFileTailWatcher<T> extends Object
Modifier and Type | Field and Description |
---|---|
protected File |
logFile |
protected Set<T> |
socketSessions
所有会话
|
protected FileTailWatcherRun |
tailWatcherRun |
Constructor and Description |
---|
BaseFileTailWatcher(File logFile) |
Modifier and Type | Method and Description |
---|---|
protected void |
add(T session,
String name)
添加监听会话
|
protected void |
close()
关闭
|
protected void |
send(T session,
String msg) |
protected FileTailWatcherRun tailWatcherRun
protected File logFile
public BaseFileTailWatcher(File logFile) throws IOException
IOException
Copyright © 2017–2019. All rights reserved.