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

Returns:

  • (Object)

    the current value of chunk_id



142
143
144
# File 'lib/fluent/plugin/output.rb', line 142

def chunk_id
  @chunk_id
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



142
143
144
# File 'lib/fluent/plugin/output.rb', line 142

def time
  @time
end

#timeoutObject

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



142
143
144
# File 'lib/fluent/plugin/output.rb', line 142

def timeout
  @timeout
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


143
144
145
# File 'lib/fluent/plugin/output.rb', line 143

def expired?
  time + timeout < Time.now
end