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



135
136
137
# File 'lib/fluent/plugin/output.rb', line 135

def chunk_id
  @chunk_id
end

#timeObject

Returns the value of attribute time

Returns:

  • (Object)

    the current value of time



135
136
137
# File 'lib/fluent/plugin/output.rb', line 135

def time
  @time
end

#timeoutObject

Returns the value of attribute timeout

Returns:

  • (Object)

    the current value of timeout



135
136
137
# File 'lib/fluent/plugin/output.rb', line 135

def timeout
  @timeout
end

Instance Method Details

#expired?Boolean

Returns:

  • (Boolean)


136
137
138
# File 'lib/fluent/plugin/output.rb', line 136

def expired?
  time + timeout < Time.now
end