Class: LogStash::Codecs::IdentityMapCodec::CodecValue
- Inherits:
-
Object
- Object
- LogStash::Codecs::IdentityMapCodec::CodecValue
- Defined in:
- lib/logstash/codecs/identity_map_codec.rb
Overview
A composite class to hold both the codec, the eviction_timeout and a last_used timestamp instances of this Value Object are stored in the mapping hash
Instance Attribute Summary collapse
-
#auto_flush_timeout ⇒ Object
Returns the value of attribute auto_flush_timeout.
-
#codec ⇒ Object
readonly
Returns the value of attribute codec.
-
#eviction_timeout ⇒ Object
Returns the value of attribute eviction_timeout.
Instance Method Summary collapse
-
#initialize(codec) ⇒ CodecValue
constructor
A new instance of CodecValue.
Constructor Details
#initialize(codec) ⇒ CodecValue
Returns a new instance of CodecValue.
88 89 90 |
# File 'lib/logstash/codecs/identity_map_codec.rb', line 88 def initialize(codec) @codec = codec end |
Instance Attribute Details
#auto_flush_timeout ⇒ Object
Returns the value of attribute auto_flush_timeout.
86 87 88 |
# File 'lib/logstash/codecs/identity_map_codec.rb', line 86 def auto_flush_timeout @auto_flush_timeout end |
#codec ⇒ Object (readonly)
Returns the value of attribute codec.
85 86 87 |
# File 'lib/logstash/codecs/identity_map_codec.rb', line 85 def codec @codec end |
#eviction_timeout ⇒ Object
Returns the value of attribute eviction_timeout.
86 87 88 |
# File 'lib/logstash/codecs/identity_map_codec.rb', line 86 def eviction_timeout @eviction_timeout end |