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.
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
#io ⇒ Object (readonly)
Returns the value of attribute io.
275 276 277 |
# File 'lib/fluent/plugin/in_tailpath.rb', line 275 def io @io end |
#wait ⇒ Object (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
281 282 283 |
# File 'lib/fluent/plugin/in_tailpath.rb', line 281 def ready? @wait <= 0 end |
#tick ⇒ Object
277 278 279 |
# File 'lib/fluent/plugin/in_tailpath.rb', line 277 def tick @wait -= 1 end |