Class: Fluent::TailPathInput::TailWatcher::RotationRequest

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(io, wait) ⇒ RotationRequest

Returns a new instance of RotationRequest.



270
271
272
273
# File 'lib/fluent/plugin/in_tailpath.rb', line 270

def initialize(io, wait)
  @io = io
  @wait = wait
end

Instance Attribute Details

#ioObject (readonly)

Returns the value of attribute io.



275
276
277
# File 'lib/fluent/plugin/in_tailpath.rb', line 275

def io
  @io
end

#waitObject (readonly)

Returns the value of attribute wait.



275
276
277
# File 'lib/fluent/plugin/in_tailpath.rb', line 275

def wait
  @wait
end

Instance Method Details

#ready?Boolean

Returns:

  • (Boolean)


281
282
283
# File 'lib/fluent/plugin/in_tailpath.rb', line 281

def ready?
  @wait <= 0
end

#tickObject



277
278
279
# File 'lib/fluent/plugin/in_tailpath.rb', line 277

def tick
  @wait -= 1
end