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_id ⇒ Object

Returns the value of attribute chunk_id

Returns:

  • (Object) —

    the current value of chunk_id



176
177
178
# File 'lib/fluent/plugin/output.rb', line 176

def chunk_id
  @chunk_id
end

#time ⇒ Object

Returns the value of attribute time

Returns:

  • (Object) —

    the current value of time



176
177
178
# File 'lib/fluent/plugin/output.rb', line 176

def time
  @time
end

#timeout ⇒ Object

Returns the value of attribute timeout

Returns:

  • (Object) —

    the current value of timeout



176
177
178
# File 'lib/fluent/plugin/output.rb', line 176

def timeout
  @timeout
end

Instance Method Details

#expired? ⇒ Boolean

Returns:

  • (Boolean)


177
178
179
# File 'lib/fluent/plugin/output.rb', line 177

def expired?
  time + timeout < Time.now
end