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.
103 104 105 |
# File 'lib/logstash/codecs/identity_map_codec.rb', line 103 def initialize(codec) @codec = codec end |
Instance Attribute Details
#auto_flush_timeout ⇒ Object
Returns the value of attribute auto_flush_timeout.
101 102 103 |
# File 'lib/logstash/codecs/identity_map_codec.rb', line 101 def auto_flush_timeout @auto_flush_timeout end |
#codec ⇒ Object (readonly)
Returns the value of attribute codec.
100 101 102 |
# File 'lib/logstash/codecs/identity_map_codec.rb', line 100 def codec @codec end |
#eviction_timeout ⇒ Object
Returns the value of attribute eviction_timeout.
101 102 103 |
# File 'lib/logstash/codecs/identity_map_codec.rb', line 101 def eviction_timeout @eviction_timeout end |