Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.
/ jdk15u-dev Public archive

Commit 83aec21

Browse files
Alexey BakhtinYuri Nesterenko
Alexey Bakhtin
authored and
Yuri Nesterenko
committed
8248865: Document JNDI/LDAP timeout properties
Documentation added in the module-info of java.naming Backport-of: d308558d4fb98fc85b6574a9de229b255fc7ee7c
1 parent de7f192 commit 83aec21

File tree

1 file changed

+36
-2
lines changed

1 file changed

+36
-2
lines changed

src/java.naming/share/classes/module-info.java

+36-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2018, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -25,6 +25,41 @@
2525

2626
/**
2727
* Defines the Java Naming and Directory Interface (JNDI) API.
28+
* <p>
29+
* Common standard JNDI environment properties that may be supported
30+
* by JNDI providers are defined and documented in
31+
* {@link javax.naming.Context}. Specific JNDI provider implementations
32+
* may also support other environment properties, which are specific
33+
* to their implementation.
34+
*
35+
* @implNote
36+
* The following implementation specific properties are supported by the
37+
* default LDAP Naming Service Provider implementation in the JDK:
38+
* <ul>
39+
* <li>{@code com.sun.jndi.ldap.connect.timeout}:
40+
* <br>The value of this property is the string representation
41+
* of an integer representing the connection timeout in
42+
* milliseconds. If the LDAP provider cannot establish a
43+
* connection within that period, it aborts the connection attempt.
44+
* The integer should be greater than zero. An integer less than
45+
* or equal to zero means to use the network protocol's (i.e., TCP's)
46+
* timeout value.
47+
* <br> If this property is not specified, the default is to wait
48+
* for the connection to be established or until the underlying
49+
* network times out.
50+
* </li>
51+
* <li>{@code com.sun.jndi.ldap.read.timeout}:
52+
* <br>The value of this property is the string representation
53+
* of an integer representing the read timeout in milliseconds
54+
* for LDAP operations. If the LDAP provider cannot get a LDAP
55+
* response within that period, it aborts the read attempt. The
56+
* integer should be greater than zero. An integer less than or
57+
* equal to zero means no read timeout is specified which is equivalent
58+
* to waiting for the response infinitely until it is received.
59+
* <br>If this property is not specified, the default is to wait
60+
* for the response until it is received.
61+
* </li>
62+
* </ul>
2863
*
2964
* @provides javax.naming.ldap.spi.LdapDnsProvider
3065
*
@@ -56,4 +91,3 @@
5691
provides java.security.Provider with
5792
sun.security.provider.certpath.ldap.JdkLDAP;
5893
}
59-

0 commit comments

Comments
 (0)