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 and the eviction_timeout 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.



76
77
78
# File 'lib/logstash/codecs/identity_map_codec.rb', line 76

def initialize(codec)
  @codec = codec
end

Instance Attribute Details

#codecObject (readonly)

Returns the value of attribute codec.



73
74
75
# File 'lib/logstash/codecs/identity_map_codec.rb', line 73

def codec
  @codec
end

#timeoutObject

Returns the value of attribute timeout.



74
75
76
# File 'lib/logstash/codecs/identity_map_codec.rb', line 74

def timeout
  @timeout
end