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.



103
104
105
# File 'lib/logstash/codecs/identity_map_codec.rb', line 103

def initialize(codec)
  @codec = codec
end

Instance Attribute Details

#auto_flush_timeoutObject

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

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

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