Class: LogStash::Codecs::IdentityMapCodec::CodecValue

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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_timeoutObject

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

#codecObject (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_timeoutObject

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