java.lang.Object
org.apache.skywalking.oap.server.library.datacarrier.buffer.Channels<T>

public class Channels<T> extends Object
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 Details

  • Method Details

    • save

      public boolean save(T data)
    • setPartitioner

      public void setPartitioner(IDataPartitioner<T> dataPartitioner)
    • setStrategy

      public void setStrategy(BufferStrategy strategy)
      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

      public QueueBuffer<T> getBuffer(int index)