Class: Fluent::TailPathInput::TailWatcher::RotationRequest
- Inherits:
-
Object
- Object
- Fluent::TailPathInput::TailWatcher::RotationRequest
- Defined in:
- lib/fluent/plugin/in_tailpath.rb
Instance Attribute Summary collapse
-
#io ⇒ Object
readonly
Returns the value of attribute io.
-
#wait ⇒ Object
readonly
Returns the value of attribute wait.
Instance Method Summary collapse
-
#initialize(io, wait) ⇒ RotationRequest
constructor
A new instance of RotationRequest.
- #ready? ⇒ Boolean
- #tick ⇒ Object
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
#io ⇒ Object (readonly)
Returns the value of attribute io.
276 277 278 |
# File 'lib/fluent/plugin/in_tailpath.rb', line 276 def io @io end |
#wait ⇒ Object (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
282 283 284 |
# File 'lib/fluent/plugin/in_tailpath.rb', line 282 def ready? @wait <= 0 end |
#tick ⇒ Object
278 279 280 |
# File 'lib/fluent/plugin/in_tailpath.rb', line 278 def tick @wait -= 1 end |