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.



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

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

Instance Attribute Details

#ioObject (readonly)

Returns the value of attribute io.



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

def io
  @io
end

#waitObject (readonly)

Returns the value of attribute wait.



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

def wait
  @wait
end

Instance Method Details

#ready?Boolean

Returns:

  • (Boolean)


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

def ready?
  @wait <= 0
end

#tickObject



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

def tick
  @wait -= 1
end