class Fluent::Plugin::AzureEventHubsOutputBuffered
Constants
- DEFAULT_BUFFER_TYPE
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_azureeventhubs_buffered.rb, line 30 def initialize super end
Public Instance Methods
configure(conf)
click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_azureeventhubs_buffered.rb, line 46 def configure(conf) compat_parameters_convert(conf, :buffer, :inject) super require_relative 'azureeventhubs/http' @sender = AzureEventHubsHttpSender.new(@connection_string, @hub_name, @expiry_interval,@proxy_addr,@proxy_port,@open_timeout,@read_timeout) end
format(tag, time, record)
click to toggle source
# File lib/fluent/plugin/out_azureeventhubs_buffered.rb, line 53 def format(tag, time, record) record = inject_values_to_record(tag, time, record) [tag, time, record].to_msgpack end
formatted_to_msgpack_binary?()
click to toggle source
# File lib/fluent/plugin/out_azureeventhubs_buffered.rb, line 58 def formatted_to_msgpack_binary? true end
multi_workers_ready?()
click to toggle source
# File lib/fluent/plugin/out_azureeventhubs_buffered.rb, line 62 def multi_workers_ready? true end
prefer_buffered_processing()
click to toggle source
# File lib/fluent/plugin/out_azureeventhubs_buffered.rb, line 42 def prefer_buffered_processing true end
shutdown()
click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_azureeventhubs_buffered.rb, line 38 def shutdown super end
start()
click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_azureeventhubs_buffered.rb, line 34 def start super end
write(chunk)
click to toggle source
# File lib/fluent/plugin/out_azureeventhubs_buffered.rb, line 66 def write(chunk) records = [] chunk.msgpack_each { |tag, time, record| records.push(record) } records.each_slice(@max_batch_size).each { |group| @sender.send_w_properties(group, @message_properties) } end