Package org.graylog2.plugin.buffers
Class Buffer
java.lang.Object
org.graylog2.plugin.buffers.Buffer
- All Implemented Interfaces:
EventBuffer
- Direct Known Subclasses:
OutputBuffer,ProcessBuffer
- Author:
- Lennart Koopmann <lennart@socketfeed.com>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected com.lmax.disruptor.RingBuffer<MessageEvent>protected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract voidafterInsert(int n) longintlonggetUsage()protected com.lmax.disruptor.WaitStrategygetWaitStrategy(String waitStrategyName, String configOptionName) protected voidprotected voidbooleanisEmpty()
-
Field Details
-
ringBuffer
-
ringBufferSize
protected int ringBufferSize
-
-
Constructor Details
-
Buffer
public Buffer()
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceEventBuffer
-
getRemainingCapacity
public long getRemainingCapacity() -
getRingBufferSize
public int getRingBufferSize() -
getUsage
public long getUsage()- Specified by:
getUsagein interfaceEventBuffer
-
insert
-
getWaitStrategy
-
afterInsert
protected abstract void afterInsert(int n) -
insert
-