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



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

def chunk_id
  @chunk_id
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



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

def time
  @time
end

#timeoutObject

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



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

def timeout
  @timeout
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


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

def expired?
  time + timeout < Time.now
end