Won't Do
Details
Assignee
Joakim TörnqvistJoakim TörnqvistReporter
Joakim TörnqvistJoakim TörnqvistPriority
Medium
Details
Details
Assignee
Joakim Törnqvist
Joakim TörnqvistReporter
Joakim Törnqvist
Joakim TörnqvistPriority
Created March 12, 2025 at 8:04 PM
Updated March 20, 2025 at 12:44 PM
Resolved March 20, 2025 at 12:44 PM
In there is a configuration class containing timeout values.
In the following table, cfg is an instance of org.opendaylight.transportpce.common.config.Config.
NOTE:
There are two implementations of Config. One is a component reading environment variables: Timeouts, in the package org.opendaylight.transportpce.common. There is also an implementation suitable for testing: CommonConfig.
CURRENT
REPLACE WITH
Timeouts.DEVICE_READ_TIMEOUT
cfg.deviceReadTimeout().time()
Timeouts.DEVICE_READ_TIMEOUT_UNIT
cfg.deviceReadTimeout().unit()
Timeouts.DEVICE_WRITE_TIMEOUT
cfg.deviceWriteTimeout().time()
Timeouts.DEVICE_WRITE_TIMEOUT_UNIT
cfg.deviceWriteTimeout().unit()