
public class AsyncTraceDispatcher extends AsyncDispatcher
| Constructor and Description |
|---|
AsyncTraceDispatcher(Properties properties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
append(Object ctx)
队列满时直接丢弃数据,不阻塞业务线程,返回日志是否被接受
|
void |
flush()
强制调用写操作
|
void |
registerShutDownHook() |
int |
size() |
void |
start(AsyncAppender appender,
String workerName)
初始化异步传输数据模块
|
public AsyncTraceDispatcher(Properties properties)
public void start(AsyncAppender appender, String workerName)
AsyncDispatcherstart in class AsyncDispatcherappender - 实际的传输模块workerName - 传输模块工作线程名称public int size()
public boolean append(Object ctx)
append in class AsyncDispatcherctx - 数据信息public void flush()
throws IOException
AsyncDispatcherflush in class AsyncDispatcherIOExceptionpublic void registerShutDownHook()
registerShutDownHook in class AsyncDispatcherCopyright © 2012–2017. All rights reserved.