Class: UU::OS::Env::Lock::LockCreate

Inherits:
REST::DTO
  • Object
show all
Defined in:
uu_os_framework-0.29.16/lib/uu/os/env/lock/lock_create.rb

Overview

Attributes of the Lock for lock create operation.

Instance Attribute Summary (collapse)

Method Summary

Methods inherited from REST::DTO

#initialize, #to_hash, #to_json

Constructor Details

This class inherits a constructor from UU::OS::REST::DTO

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class UU::OS::REST::DTO

Instance Attribute Details

- (String) code

Code of the lock.

Parameters:

  • (String)

Returns:

  • (String)


15
16
17
# File 'uu_os_framework-0.29.16/lib/uu/os/env/lock/lock_create.rb', line 15

def code
  @code
end

- (Numeric) lock_timeout

Timeout for the lock expiration (in seconds).

Parameters:

  • (Numeric)

Returns:

  • (Numeric)


25
26
27
# File 'uu_os_framework-0.29.16/lib/uu/os/env/lock/lock_create.rb', line 25

def lock_timeout
  @lock_timeout
end

- (String) name

Name of the lock.

Parameters:

  • (String)

Returns:

  • (String)


20
21
22
# File 'uu_os_framework-0.29.16/lib/uu/os/env/lock/lock_create.rb', line 20

def name
  @name
end

- (TrueClass, FalseClass) reentrant

Flag if the lock is reentrant.

Parameters:

  • (TrueClass, FalseClass)

Returns:

  • (TrueClass, FalseClass)


30
31
32
# File 'uu_os_framework-0.29.16/lib/uu/os/env/lock/lock_create.rb', line 30

def reentrant
  @reentrant
end

- (Numeric) wait_timeout

Wait timeout for which process want to wait for lock creation (in seconds).

Parameters:

  • (Numeric)

Returns:

  • (Numeric)


35
36
37
# File 'uu_os_framework-0.29.16/lib/uu/os/env/lock/lock_create.rb', line 35

def wait_timeout
  @wait_timeout
end