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.rmi.jmod - RMI Module
JDK 17 java.rmi.jmod is the JMOD file for JDK 17 RMI (Remote Method Invocation) module.
JDK 17 RMI module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.rmi.jmod.
JDK 17 RMI module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 RMI module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.rmi.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/rmi/runtime/RuntimeUtil.java
/* * Copyright (c) 2005, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package sun.rmi.runtime; import java.security.AccessController; import java.security.Permission; import java.security.PrivilegedAction; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ThreadFactory; import java.util.concurrent.atomic.AtomicInteger; import java.util.logging.Level; /** * RMI runtime implementation utilities. * * There is a single instance of this class, which can be obtained * with a GetInstanceAction. Getting the instance requires * RuntimePermission("sun.rmi.runtime.RuntimeUtil.getInstance") * because the public methods of this class expose security-sensitive * capabilities. * * @author Peter Jones **/ public final class RuntimeUtil { /** runtime package log */ private static final Log runtimeLog = Log.getLog("sun.rmi.runtime", null, false); /** number of scheduler threads */ @SuppressWarnings("removal") private static final int schedulerThreads = // default 1 AccessController.doPrivileged((PrivilegedAction<Integer>) () -> Integer.getInteger("sun.rmi.runtime.schedulerThreads", 1)); /** permission required to get instance */ private static final Permission GET_INSTANCE_PERMISSION = new RuntimePermission("sun.rmi.runtime.RuntimeUtil.getInstance"); /** the singleton instance of this class */ private static final RuntimeUtil instance = new RuntimeUtil(); /** thread pool for scheduling delayed tasks */ private final ScheduledThreadPoolExecutor scheduler; private RuntimeUtil() { scheduler = new ScheduledThreadPoolExecutor( schedulerThreads, new ThreadFactory() { private final AtomicInteger count = new AtomicInteger(); @SuppressWarnings("removal") public Thread newThread(Runnable runnable) { try { return AccessController.doPrivileged( new NewThreadAction(runnable, "Scheduler(" + count.getAndIncrement() + ")", true)); } catch (Throwable t) { runtimeLog.log(Level.WARNING, "scheduler thread factory throws", t); return null; } } }); /* * We would like to allow the scheduler's threads to terminate * if possible, but a bug in DelayQueue.poll can cause code * like this to result in a busy loop: */ // stpe.setKeepAliveTime(10, TimeUnit.MINUTES); // stpe.allowCoreThreadTimeOut(true); } /** * A PrivilegedAction for getting the RuntimeUtil instance. **/ public static class GetInstanceAction implements PrivilegedAction<RuntimeUtil> { /** * Creates an action that returns the RuntimeUtil instance. **/ public GetInstanceAction() { } public RuntimeUtil run() { return getInstance(); } } private static RuntimeUtil getInstance() { @SuppressWarnings("removal") SecurityManager sm = System.getSecurityManager(); if (sm != null) { sm.checkPermission(GET_INSTANCE_PERMISSION); } return instance; } /** * Returns the shared thread pool for scheduling delayed tasks. * * Note that the returned pool has limited concurrency, so * submitted tasks should be short-lived and should not block. **/ public ScheduledThreadPoolExecutor getScheduler() { return scheduler; } }
⏎ sun/rmi/runtime/RuntimeUtil.java
Or download all of them as a single archive file:
File name: java.rmi-17.0.5-src.zip File size: 220001 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.scripting.jmod - Scripting Module
2023-11-06, ≈17🔥, 0💬
Popular Posts:
Apache Commons Lang 3 is the 3rd version of Apache Commons Lang, which provides a host of helper uti...
Where to get the Java source code for Connector/J 8.0 Core Impl module? Java source code files for C...
XML Serializer, Release 2.7.1, allows you to write out XML, HTML etc. as a stream of characters from...
JDK 7 tools.jar is the JAR file for JDK 7 tools. It contains Java classes to support different JDK t...
JDK 8 jconsole.jar is the JAR file for JDK 8 JConsole, which is a graphical monitoring tool to monit...