Home / Function/ getLong() — netty Function Reference

getLong() — netty Function Reference

Architecture documentation for the getLong() function in SystemPropertyUtil.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  9ff766c3_c79f_4281_131a_f307dc23fb65["getLong()"]
  1e2b5a90_1617_877a_4b1d_2ffa3b96bb90["SystemPropertyUtil"]
  9ff766c3_c79f_4281_131a_f307dc23fb65 -->|defined in| 1e2b5a90_1617_877a_4b1d_2ffa3b96bb90
  style 9ff766c3_c79f_4281_131a_f307dc23fb65 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/SystemPropertyUtil.java lines 161–180

    public static long getLong(String key, long def) {
        String value = get(key);
        if (value == null) {
            return def;
        }

        value = value.trim();
        try {
            return Long.parseLong(value);
        } catch (Exception e) {
            // Ignore
        }

        logger.warn(
                "Unable to parse the long integer system property '{}':{} - using the default value: {}",
                key, value, def
        );

        return def;
    }

Domain

Subdomains

Frequently Asked Questions

What does getLong() do?
getLong() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/SystemPropertyUtil.java.
Where is getLong() defined?
getLong() is defined in common/src/main/java/io/netty/util/internal/SystemPropertyUtil.java at line 161.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free