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.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/nio/channels/MembershipKey.java
/* * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.nio.channels; import java.net.InetAddress; import java.net.NetworkInterface; import java.io.IOException; /** * A token representing the membership of an Internet Protocol (IP) multicast * group. * * <p> A membership key may represent a membership to receive all datagrams sent * to the group, or it may be <em>source-specific</em>, meaning that it * represents a membership that receives only datagrams from a specific source * address. Whether or not a membership key is source-specific may be determined * by invoking its {@link #sourceAddress() sourceAddress} method. * * <p> A membership key is valid upon creation and remains valid until the * membership is dropped by invoking the {@link #drop() drop} method, or * the channel is closed. The validity of the membership key may be tested * by invoking its {@link #isValid() isValid} method. * * <p> Where a membership key is not source-specific and the underlying operation * system supports source filtering, then the {@link #block block} and {@link * #unblock unblock} methods can be used to block or unblock multicast datagrams * from particular source addresses. * * @see MulticastChannel * * @since 1.7 */ public abstract class MembershipKey { /** * Initializes a new instance of this class. */ protected MembershipKey() { } /** * Tells whether or not this membership is valid. * * <p> A multicast group membership is valid upon creation and remains * valid until the membership is dropped by invoking the {@link #drop() drop} * method, or the channel is closed. * * @return {@code true} if this membership key is valid, {@code false} * otherwise */ public abstract boolean isValid(); /** * Drop membership. * * <p> If the membership key represents a membership to receive all datagrams * then the membership is dropped and the channel will no longer receive any * datagrams sent to the group. If the membership key is source-specific * then the channel will no longer receive datagrams sent to the group from * that source address. * * <p> After membership is dropped it may still be possible to receive * datagrams sent to the group. This can arise when datagrams are waiting to * be received in the socket's receive buffer. After membership is dropped * then the channel may {@link MulticastChannel#join join} the group again * in which case a new membership key is returned. * * <p> Upon return, this membership object will be {@link #isValid() invalid}. * If the multicast group membership is already invalid then invoking this * method has no effect. Once a multicast group membership is invalid, * it remains invalid forever. */ public abstract void drop(); /** * Block multicast datagrams from the given source address. * * <p> If this membership key is not source-specific, and the underlying * operating system supports source filtering, then this method blocks * multicast datagrams from the given source address. If the given source * address is already blocked then this method has no effect. * After a source address is blocked it may still be possible to receive * datagrams from that source. This can arise when datagrams are waiting to * be received in the socket's receive buffer. * * @param source * The source address to block * * @return This membership key * * @throws IllegalArgumentException * If the {@code source} parameter is not a unicast address or * is not the same address type as the multicast group * @throws IllegalStateException * If this membership key is source-specific or is no longer valid * @throws UnsupportedOperationException * If the underlying operating system does not support source * filtering * @throws IOException * If an I/O error occurs */ public abstract MembershipKey block(InetAddress source) throws IOException; /** * Unblock multicast datagrams from the given source address that was * previously blocked using the {@link #block(InetAddress) block} method. * * @param source * The source address to unblock * * @return This membership key * * @throws IllegalStateException * If the given source address is not currently blocked or the * membership key is no longer valid */ public abstract MembershipKey unblock(InetAddress source); /** * Returns the channel for which this membership key was created. This * method will continue to return the channel even after the membership * becomes {@link #isValid invalid}. * * @return the channel */ public abstract MulticastChannel channel(); /** * Returns the multicast group for which this membership key was created. * This method will continue to return the group even after the membership * becomes {@link #isValid invalid}. * * @return the multicast group */ public abstract InetAddress group(); /** * Returns the network interface for which this membership key was created. * This method will continue to return the network interface even after the * membership becomes {@link #isValid invalid}. * * @return the network interface */ public abstract NetworkInterface networkInterface(); /** * Returns the source address if this membership key is source-specific, * or {@code null} if this membership is not source-specific. * * @return The source address if this membership key is source-specific, * otherwise {@code null} */ public abstract InetAddress sourceAddress(); }
⏎ java/nio/channels/MembershipKey.java
Or download all of them as a single archive file:
File name: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 242317👍, 0💬
Popular Posts:
What Is commons-net-ftp-2.0.jar? commons-net-ftp-2.0.jar is the JAR file for Apache Commons Net FTP ...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...
Swingx is the SwingLabs Swing Component Extensions. JAR File Size and Download Location: File name: ...
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 ...