Class Channels<T>
java.lang.Object
org.apache.skywalking.oap.server.library.datacarrier.buffer.Channels<T>
Channels of Buffer It contains all buffer data which belongs to this channel. It supports several strategy when
buffer is full. The Default is BLOCKING
Created by wusheng on 2016/10/25.
-
Constructor Summary
ConstructorsConstructorDescriptionChannels(int channelSize, int bufferSize, IDataPartitioner<T> partitioner, BufferStrategy strategy) -
Method Summary
Modifier and TypeMethodDescriptiongetBuffer(int index) intget channelSizebooleanvoidsetPartitioner(IDataPartitioner<T> dataPartitioner) voidsetStrategy(BufferStrategy strategy) override the strategy at runtime.longsize()
-
Constructor Details
-
Channels
public Channels(int channelSize, int bufferSize, IDataPartitioner<T> partitioner, BufferStrategy strategy)
-
-
Method Details
-
save
-
setPartitioner
-
setStrategy
override the strategy at runtime. Notice, this will override several channels one by one. So, when running setStrategy, each channel may use different BufferStrategy -
getChannelSize
public int getChannelSize()get channelSize -
size
public long size() -
getBuffer
-