Class: LogStash::Outputs::Qingstor::FileRepository::FactoryInitializer
- Inherits:
-
Object
- Object
- LogStash::Outputs::Qingstor::FileRepository::FactoryInitializer
- Defined in:
- lib/logstash/outputs/qingstor/file_repository.rb
Instance Method Summary collapse
- #apply(prefix_key) ⇒ Object
-
#initialize(tags, encoding, temporary_directory, stale_time) ⇒ FactoryInitializer
constructor
A new instance of FactoryInitializer.
Constructor Details
#initialize(tags, encoding, temporary_directory, stale_time) ⇒ FactoryInitializer
Returns a new instance of FactoryInitializer.
47 48 49 50 51 52 |
# File 'lib/logstash/outputs/qingstor/file_repository.rb', line 47 def initialize(, encoding, temporary_directory, stale_time) @tags = @encoding = encoding @temporary_directory = temporary_directory @stale_time = stale_time end |
Instance Method Details
#apply(prefix_key) ⇒ Object
54 55 56 57 58 59 60 |
# File 'lib/logstash/outputs/qingstor/file_repository.rb', line 54 def apply(prefix_key) PrefixedValue.new( TemporaryFileFactory.new(prefix_key, @tags, @encoding, @temporary_directory), @stale_time ) end |