Class: EventQ::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/eventq_base/configuration.rb

Class Method Summary collapse

Class Method Details

.serialization_providerObject



8
9
10
11
12
13
14
# File 'lib/eventq_base/configuration.rb', line 8

def self.serialization_provider
  if RUBY_PLATFORM =~ /java/
    @serialization_provider ||= EventQ::SerializationProviders::JSON_PROVIDER
  else
    @serialization_provider ||= EventQ::SerializationProviders::OJ_PROVIDER
  end
end

.serialization_provider=(value) ⇒ Object



4
5
6
# File 'lib/eventq_base/configuration.rb', line 4

def self.serialization_provider=(value)
  @serialization_provider = value
end

.signature_providerObject



20
21
22
# File 'lib/eventq_base/configuration.rb', line 20

def self.signature_provider
  @signature_provider ||= EventQ::SignatureProviders::SHA256
end

.signature_provider=(value) ⇒ Object



16
17
18
# File 'lib/eventq_base/configuration.rb', line 16

def self.signature_provider=(value)
  @signature_provider = value
end

.signature_secretObject



28
29
30
# File 'lib/eventq_base/configuration.rb', line 28

def self.signature_secret
  @signature_secret
end

.signature_secret=(value) ⇒ Object



24
25
26
# File 'lib/eventq_base/configuration.rb', line 24

def self.signature_secret=(value)
  @signature_secret = value
end