use of org.komamitsu.fluency.buffer.Buffer in project fluency by komamitsu.
the class FluencyBuilder method createFluency.
@VisibleForTesting
public Fluency createFluency(RecordFormatter recordFormatter, Ingester ingester, Buffer.Config bufferConfig, Flusher.Config flusherConfig) {
Buffer buffer = new Buffer(bufferConfig, recordFormatter);
Flusher flusher = new Flusher(flusherConfig, buffer, ingester);
return new Fluency(buffer, flusher);
}
Aggregations