Class CoreExchange
- java.lang.Object
-
- risesoft.data.transfer.core.exchange.CoreExchange
-
- All Implemented Interfaces:
Closed,Exchange,RecordOutuptStream
public class CoreExchange extends Object implements Exchange
核心交换机用于组织交换机 所有输入数据的汇集位置,包含流量统计流量统计后将流向下游交换机,下游交换机不要进行流量统计- Author:
- lb
- Date:
- 2023年12月12日
-
-
Constructor Summary
Constructors Constructor Description CoreExchange(Exchange exchange, Communication communication)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()关闭 通常代表着上游处理任务结束voidflush()OutChannelgetOutChannel()获取输出通道voidsetOutChannel(OutChannel channel)设置这个交换机的输出通道voidshutdown()关闭voidwriter(List<Record> record)批量输出数据voidwriter(Record record)输出一条record
-
-
-
Constructor Detail
-
CoreExchange
public CoreExchange(Exchange exchange, Communication communication)
-
-
Method Detail
-
writer
public void writer(Record record)
Description copied from interface:RecordOutuptStream输出一条record- Specified by:
writerin interfaceRecordOutuptStream
-
writer
public void writer(List<Record> record)
Description copied from interface:RecordOutuptStream批量输出数据- Specified by:
writerin interfaceRecordOutuptStream
-
flush
public void flush()
- Specified by:
flushin interfaceRecordOutuptStream
-
close
public void close() throws ExceptionDescription copied from interface:Closed关闭 通常代表着上游处理任务结束
-
setOutChannel
public void setOutChannel(OutChannel channel)
Description copied from interface:Exchange设置这个交换机的输出通道- Specified by:
setOutChannelin interfaceExchange
-
getOutChannel
public OutChannel getOutChannel()
Description copied from interface:Exchange获取输出通道- Specified by:
getOutChannelin interfaceExchange- Returns:
-
-