Skip to content

Package: Constants

Constants

nameinstructionbranchcomplexitylinemethod
Constants()
M: 6 C: 0
0%
M: 0 C: 0
100%
M: 1 C: 0
0%
M: 2 C: 0
0%
M: 1 C: 0
0%
static {...}
M: 0 C: 3
100%
M: 0 C: 0
100%
M: 0 C: 1
100%
M: 0 C: 1
100%
M: 0 C: 1
100%

Coverage

1: /*
2: * JOPA
3: * Copyright (C) 2024 Czech Technical University in Prague
4: *
5: * This library is free software; you can redistribute it and/or
6: * modify it under the terms of the GNU Lesser General Public
7: * License as published by the Free Software Foundation; either
8: * version 3.0 of the License, or (at your option) any later version.
9: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library.
17: */
18: package cz.cvut.kbss.ontodriver.rdf4j.config;
19:
20: public class Constants {
21:
22: /**
23: * How many assertions will trigger load-all statement loading strategy.
24: *
25: * @see Rdf4jOntoDriverProperties#LOAD_ALL_THRESHOLD
26: */
27: public static final int DEFAULT_LOAD_ALL_THRESHOLD = 5;
28:
29: /**
30: * Default language to use when an {@link cz.cvut.kbss.ontodriver.model.Assertion} does not specify a language.
31: * <p>
32: * The {@code null} value ensures that strings will be saved as xsd:string and loaded with any language tag (or
33: * without a language tag at all).
34: */
35: public static final String DEFAULT_LANG = null;
36:
37: /**
38: * Default number of tries to connect to a remote repository.
39: *
40: * @see Rdf4jOntoDriverProperties#RECONNECT_ATTEMPTS
41: */
42: public static final int DEFAULT_RECONNECT_ATTEMPTS_COUNT = 5;
43:
44: /**
45: * Default maximum connection pool size.
46: *
47: * @see Rdf4jOntoDriverProperties#MAX_CONNECTION_POOL_SIZE
48: */
49: public static final int DEFAULT_MAX_CONNECTIONS = 20;
50:
51: /**
52: * Default connection request timeout (in milliseconds).
53: *
54: * @see Rdf4jOntoDriverProperties#CONNECTION_REQUEST_TIMEOUT
55: */
56: public static final int DEFAULT_CONNECTION_REQUEST_TIMEOUT = 30000;
57:
58: private Constants() {
59: throw new AssertionError();
60: }
61: }