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/EventQueue.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.util.Vector; import java.util.EventObject; import javax.naming.event.NamingEvent; import javax.naming.event.NamingExceptionEvent; import javax.naming.event.NamingListener; import javax.naming.ldap.UnsolicitedNotificationEvent; import javax.naming.ldap.UnsolicitedNotificationListener; /** * Package private class used by EventSupport to dispatch events. * This class implements an event queue, and a dispatcher thread that * dequeues and dispatches events from the queue. * * Pieces stolen from sun.misc.Queue. * * @author Bill Shannon (from javax.mail.event) * @author Rosanna Lee (modified for JNDI-related events) */ final class EventQueue implements Runnable { final static private boolean debug = false; private static class QueueElement { QueueElement next = null; QueueElement prev = null; EventObject event = null; Vector<NamingListener> vector = null; QueueElement(EventObject event, Vector<NamingListener> vector) { this.event = event; this.vector = vector; } } private QueueElement head = null; private QueueElement tail = null; private Thread qThread; // package private EventQueue() { qThread = Obj.helper.createThread(this); qThread.setDaemon(true); // not a user thread qThread.start(); } // package private; /** * Enqueue an event. * @param event Either a {@code NamingExceptionEvent} or a subclass * of {@code NamingEvent} or * {@code UnsolicitedNotificationEvent}. * If it is a subclass of {@code NamingEvent}, all listeners must implement * the corresponding subinterface of {@code NamingListener}. * For example, for an {@code ObjectAddedEvent}, all listeners <em>must</em> * implement the {@code ObjectAddedListener} interface. * <em>The current implementation does not check this before dispatching * the event.</em> * If the event is a {@code NamingExceptionEvent}, then all listeners * are notified. * @param vector List of NamingListeners that will be notified of event. */ synchronized void enqueue(EventObject event, Vector<NamingListener> vector) { QueueElement newElt = new QueueElement(event, vector); if (head == null) { head = newElt; tail = newElt; } else { newElt.next = head; head.prev = newElt; head = newElt; } notify(); } /** * Dequeue the oldest object on the queue. * Used only by the run() method. * * @return the oldest object on the queue. * @exception java.lang.InterruptedException if any thread has * interrupted this thread. */ private synchronized QueueElement dequeue() throws InterruptedException { while (tail == null) wait(); QueueElement elt = tail; tail = elt.prev; if (tail == null) { head = null; } else { tail.next = null; } elt.prev = elt.next = null; return elt; } /** * Pull events off the queue and dispatch them. */ public void run() { QueueElement qe; try { while ((qe = dequeue()) != null) { EventObject e = qe.event; Vector<NamingListener> v = qe.vector; for (int i = 0; i < v.size(); i++) { // Dispatch to corresponding NamingListener // The listener should only be getting the event that // it is interested in. (No need to check mask or // instanceof subinterfaces.) // It is the responsibility of the enqueuer to // only enqueue events with listeners of the correct type. if (e instanceof NamingEvent) { ((NamingEvent)e).dispatch(v.elementAt(i)); // An exception occurred: if notify all naming listeners } else if (e instanceof NamingExceptionEvent) { ((NamingExceptionEvent)e).dispatch(v.elementAt(i)); } else if (e instanceof UnsolicitedNotificationEvent) { ((UnsolicitedNotificationEvent)e).dispatch( (UnsolicitedNotificationListener)v.elementAt(i)); } } qe = null; e = null; v = null; } } catch (InterruptedException e) { // just die } } // package private; used by EventSupport; /** * Stop the dispatcher so we can be destroyed. */ void stop() { if (debug) System.err.println("EventQueue stopping"); if (qThread != null) { qThread.interrupt(); // kill our thread qThread = null; } } }
⏎ com/sun/jndi/ldap/EventQueue.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, 52465👍, 0💬
Popular Posts:
JDK 11 java.sql.rowset.jmod is the JMOD file for JDK 11 SQL Rowset module. JDK 11 SQL Rowset module ...
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module. JDK 11 Management module ...
What Is HttpComponents httpcore-4.2.2.jar? HttpComponents httpcore-4.2.2.jar is the JAR file for Apa...
Apache Commons Codec library provides implementations of common encoders and decoders such as Base64...
JDK 11 jdk.hotspot.agent.jmod is the JMOD file for JDK 11 Hotspot Agent module. JDK 11 Hotspot Agent...