Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 17 java.naming.jmod - Naming Module
JDK 17 java.naming.jmod is the JMOD file for JDK 17 Naming module.
JDK 17 Naming module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.naming.jmod.
JDK 17 Naming module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Naming module source code files are stored in \fyicenter\jdk-17.0.5\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 { private static final 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-17.0.5-src.zip File size: 490626 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.net.http.jmod - Net HTTP Module
2023-09-23, ≈24🔥, 0💬
Popular Posts:
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...
JDK 17 jdk.hotspot.agent.jmod is the JMOD file for JDK 17 Hotspot Agent module. JDK 17 Hotspot Agent...
Apache ZooKeeper is an open-source server which enables highly reliable distributed coordination. Ap...
Jetty provides an HTTP server, HTTP client, and javax.servlet container. These components are open s...
What Is poi-5.2.3.jar? poi-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which provides an...