Module: Fluent::MessagePackFactory::Mixin
- Included in:
- EngineClass
- Defined in:
- lib/fluent/msgpack_factory.rb
Instance Method Summary collapse
- #deprecated_log(str) ⇒ Object
- #msgpack_factory ⇒ Object
- #msgpack_packer(*args) ⇒ Object
- #msgpack_unpacker(*args) ⇒ Object
Instance Method Details
#deprecated_log(str) ⇒ Object
46 47 48 49 50 51 |
# File 'lib/fluent/msgpack_factory.rb', line 46 def deprecated_log(str) if $log $log.warn(str) @deprecated_log_done = true end end |
#msgpack_factory ⇒ Object
25 26 27 28 29 30 |
# File 'lib/fluent/msgpack_factory.rb', line 25 def msgpack_factory unless @deprecated_log_done deprecated_log('Deprecated method: this method is going to be deleted. Use Fluent::MessagePackFactory.engine_factory') end MessagePackFactory.engine_factory end |
#msgpack_packer(*args) ⇒ Object
32 33 34 35 36 37 |
# File 'lib/fluent/msgpack_factory.rb', line 32 def msgpack_packer(*args) unless @deprecated_log_done deprecated_log('Deprecated method: this method is going to be deleted. Use Fluent::MessagePackFactory.msgpack_packer') end MessagePackFactory.msgpack_packer(*args) end |
#msgpack_unpacker(*args) ⇒ Object
39 40 41 42 43 44 |
# File 'lib/fluent/msgpack_factory.rb', line 39 def msgpack_unpacker(*args) unless @deprecated_log_done deprecated_log('Deprecated method: this method is going to be deleted. Use Fluent::MessagePackFactory.msgpack_unpacker') end MessagePackFactory.msgpack_unpacker(*args) end |