Skip to main content

@terascope/utils / index / Logger / RingBuffer

Class: RingBuffer

Extends

  • EventEmitter

Implements

  • WritableStream

Constructors

new RingBuffer()

new RingBuffer(options): RingBuffer

Parameters

ParameterType
optionsRingBufferOptions

Returns

RingBuffer

Overrides

EventEmitter.constructor

Source

packages/types/dist/src/logger.d.ts:230

Properties

records

records: any[]

Source

packages/types/dist/src/logger.d.ts:232


writable

writable: boolean

Implementation of

NodeJS.WritableStream.writable

Source

packages/types/dist/src/logger.d.ts:231

Methods

destroy()

destroy(): void

Returns

void

Source

packages/types/dist/src/logger.d.ts:235


destroySoon()

destroySoon(): void

Returns

void

Source

packages/types/dist/src/logger.d.ts:236


end()

end(data?): this

Parameters

ParameterType
data?any

Returns

this

Implementation of

NodeJS.WritableStream.end

Source

packages/types/dist/src/logger.d.ts:234


write()

write(record): boolean

Parameters

ParameterType
recordany

Returns

boolean

Implementation of

NodeJS.WritableStream.write

Source

packages/types/dist/src/logger.d.ts:233