Class: Fluent::Plugin::MemoryBuffer

Inherits:
Buffer show all
Defined in:
lib/fluent/plugin/buf_memory.rb

Constant Summary

Constants inherited from Buffer

Buffer::DEFAULT_CHUNK_FULL_THRESHOLD, Buffer::DEFAULT_CHUNK_LIMIT_SIZE, Buffer::DEFAULT_TOTAL_LIMIT_SIZE, Buffer::MINIMUM_APPEND_ATTEMPT_RECORDS, Buffer::STATS_KEYS

Constants included from Configurable

Configurable::CONFIG_TYPE_REGISTRY

Instance Attribute Summary

Attributes inherited from Buffer

#dequeued, #queue, #queue_size, #queued_num, #stage, #stage_size

Attributes inherited from Base

#under_plugin_development

Instance Method Summary collapse

Methods inherited from Buffer

#chunk_size_full?, #chunk_size_over?, #clear_queue!, #close, #configure, #dequeue_chunk, #enable_update_timekeys, #enqueue_all, #enqueue_chunk, #enqueue_unstaged_chunk, #initialize, #metadata, #new_metadata, #persistent?, #purge_chunk, #queue_full?, #queued?, #queued_records, #start, #statistics, #storable?, #takeback_chunk, #terminate, #timekeys, #update_timekeys, #write, #write_once, #write_step_by_step

Methods included from UniqueId::Mixin

#dump_unique_id_hex, #generate_unique_id

Methods included from OwnedByMixin

#log, #owner, #owner=

Methods inherited from Base

#after_shutdown, #after_shutdown?, #after_start, #after_started?, #before_shutdown, #before_shutdown?, #called_in_test?, #close, #closed?, #configure, #configured?, #context_router, #context_router=, #fluentd_worker_id, #has_router?, #initialize, #inspect, #multi_workers_ready?, #plugin_root_dir, #reloadable_plugin?, #shutdown, #shutdown?, #start, #started?, #stop, #stopped?, #string_safe_encoding, #terminate, #terminated?

Methods included from SystemConfig::Mixin

#system_config, #system_config_override

Methods included from Configurable

#config, #configure, #configure_proxy_generate, #configured_section_create, included, #initialize, lookup_type, register_type

Constructor Details

This class inherits a constructor from Fluent::Plugin::Buffer

Instance Method Details

#generate_chunk(metadata) ⇒ Object



29
30
31
# File 'lib/fluent/plugin/buf_memory.rb', line 29

def generate_chunk()
  Fluent::Plugin::Buffer::MemoryChunk.new(, compress: @compress)
end

#resumeObject



25
26
27
# File 'lib/fluent/plugin/buf_memory.rb', line 25

def resume
  return {}, []
end