Class: MasterLock::Config

Inherits:
Struct
  • Object
show all
Defined in:
lib/master_lock.rb

Instance Attribute Summary collapse

Instance Attribute Details

#acquire_timeoutObject

Returns the value of attribute acquire_timeout

Returns:

  • (Object)

    the current value of acquire_timeout



27
28
29
# File 'lib/master_lock.rb', line 27

def acquire_timeout
  @acquire_timeout
end

#extend_intervalObject

Returns the value of attribute extend_interval

Returns:

  • (Object)

    the current value of extend_interval



27
28
29
# File 'lib/master_lock.rb', line 27

def extend_interval
  @extend_interval
end

#hostnameObject

Returns the value of attribute hostname

Returns:

  • (Object)

    the current value of hostname



27
28
29
# File 'lib/master_lock.rb', line 27

def hostname
  @hostname
end

#key_prefixObject

Returns the value of attribute key_prefix

Returns:

  • (Object)

    the current value of key_prefix



27
28
29
# File 'lib/master_lock.rb', line 27

def key_prefix
  @key_prefix
end

#loggerObject

Returns the value of attribute logger

Returns:

  • (Object)

    the current value of logger



27
28
29
# File 'lib/master_lock.rb', line 27

def logger
  @logger
end

#redisObject

Returns the value of attribute redis

Returns:

  • (Object)

    the current value of redis



27
28
29
# File 'lib/master_lock.rb', line 27

def redis
  @redis
end

#sleep_timeObject

Returns the value of attribute sleep_time

Returns:

  • (Object)

    the current value of sleep_time



27
28
29
# File 'lib/master_lock.rb', line 27

def sleep_time
  @sleep_time
end

#ttlObject

Returns the value of attribute ttl

Returns:

  • (Object)

    the current value of ttl



27
28
29
# File 'lib/master_lock.rb', line 27

def ttl
  @ttl
end