Class: Fluent::Plugin::Output::DequeuedChunkInfo

Inherits:
Struct
  • Object
show all
Defined in:
lib/fluent/plugin/output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#chunk_idObject

Returns the value of attribute chunk_id



160
161
162
# File 'lib/fluent/plugin/output.rb', line 160

def chunk_id
  @chunk_id
end

#timeObject

Returns the value of attribute time



160
161
162
# File 'lib/fluent/plugin/output.rb', line 160

def time
  @time
end

#timeoutObject

Returns the value of attribute timeout



160
161
162
# File 'lib/fluent/plugin/output.rb', line 160

def timeout
  @timeout
end

Instance Method Details

#expired?Boolean



161
162
163
# File 'lib/fluent/plugin/output.rb', line 161

def expired?
  time + timeout < Time.now
end