public abstract class Buffer extends Object implements EventBuffer
| Modifier and Type | Field and Description |
|---|---|
protected com.lmax.disruptor.RingBuffer<MessageEvent> |
ringBuffer |
protected int |
ringBufferSize |
| Constructor and Description |
|---|
Buffer() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
afterInsert(int n) |
long |
getRemainingCapacity() |
int |
getRingBufferSize() |
long |
getUsage() |
protected com.lmax.disruptor.WaitStrategy |
getWaitStrategy(String waitStrategyName,
String configOptionName) |
protected void |
insert(Message message) |
protected void |
insert(Message[] messages) |
boolean |
isEmpty() |
protected com.lmax.disruptor.RingBuffer<MessageEvent> ringBuffer
protected int ringBufferSize
public boolean isEmpty()
isEmpty in interface EventBufferpublic long getRemainingCapacity()
public int getRingBufferSize()
public long getUsage()
getUsage in interface EventBufferprotected void insert(Message message)
protected com.lmax.disruptor.WaitStrategy getWaitStrategy(String waitStrategyName, String configOptionName)
protected abstract void afterInsert(int n)
protected void insert(Message[] messages)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.