Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.naming.jmod - Naming Module
JDK 11 java.naming.jmod is the JMOD file for JDK 11 Naming module.
JDK 11 Naming module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.naming.jmod.
JDK 11 Naming module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Naming module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.naming.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/jndi/ldap/LdapRequest.java
/* * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.jndi.ldap; import java.io.IOException; import java.util.concurrent.BlockingQueue; import java.util.concurrent.LinkedBlockingQueue; import javax.naming.CommunicationException; final class LdapRequest { LdapRequest next; // Set/read in synchronized Connection methods int msgId; // read-only private int gotten = 0; private BlockingQueue<BerDecoder> replies; private int highWatermark = -1; private boolean cancelled = false; private boolean pauseAfterReceipt = false; private boolean completed = false; LdapRequest(int msgId, boolean pause) { this(msgId, pause, -1); } LdapRequest(int msgId, boolean pause, int replyQueueCapacity) { this.msgId = msgId; this.pauseAfterReceipt = pause; if (replyQueueCapacity == -1) { this.replies = new LinkedBlockingQueue<BerDecoder>(); } else { this.replies = new LinkedBlockingQueue<BerDecoder>(replyQueueCapacity); highWatermark = (replyQueueCapacity * 80) / 100; // 80% capacity } } synchronized void cancel() { cancelled = true; // Unblock reader of pending request // Should only ever have at most one waiter notify(); } synchronized boolean addReplyBer(BerDecoder ber) { if (cancelled) { return false; } // Add a new reply to the queue of unprocessed replies. try { replies.put(ber); } catch (InterruptedException e) { // ignore } // peek at the BER buffer to check if it is a SearchResultDone PDU try { ber.parseSeq(null); ber.parseInt(); completed = (ber.peekByte() == LdapClient.LDAP_REP_RESULT); } catch (IOException e) { // ignore } ber.reset(); notify(); // notify anyone waiting for reply /* * If a queue capacity has been set then trigger a pause when the * queue has filled to 80% capacity. Later, when the queue has drained * then the reader gets unpaused. */ if (highWatermark != -1 && replies.size() >= highWatermark) { return true; // trigger the pause } return pauseAfterReceipt; } synchronized BerDecoder getReplyBer() throws CommunicationException { if (cancelled) { throw new CommunicationException("Request: " + msgId + " cancelled"); } /* * Remove a reply if the queue is not empty. * poll returns null if queue is empty. */ BerDecoder reply = replies.poll(); return reply; } synchronized boolean hasSearchCompleted() { return completed; } }
⏎ com/sun/jndi/ldap/LdapRequest.java
Or download all of them as a single archive file:
File name: java.naming-11.0.1-src.zip File size: 461792 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.net.http.jmod - Net HTTP Module
2020-09-30, 52617👍, 0💬
Popular Posts:
Apache Commons Codec library provides implementations of common encoders and decoders such as Base64...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...
What Is jtds-1.2.2.jar? jtds-1.2.2.jar is the JAR files of jTDS Java library 1.2.2, which is a JDBC ...
Oracle Business Intelligence (BI) Beans enables developers to productively build business intelligen...