Keine Cache-Version

Caching deaktiviert Standardeinstellung für diese Seite:aktiviert (code LNG204)
Wenn die Anzeige zu langsam ist, können Sie den Benutzermodus deaktivieren, um die zwischengespeicherte Version anzuzeigen.
java.nio.channels.spi

Class AbstractSelector

    • Constructor Detail
      • AbstractSelector
        protected AbstractSelector(SelectorProvider provider)
        Initializes a new instance of this class.

    • Method Detail
      • close
        public final void close()
                         throws IOException
        Closes this selector.

        If the selector has already been closed then this method returns immediately. Otherwise it marks the selector as closed and then invokes the implCloseSelector method in order to complete the close operation.

        Specified by:
        close in interface Closeable
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in class Selector
        Throws:
        IOException - If an I/O error occurs
      • implCloseSelector
        protected abstract void implCloseSelector()
                                           throws IOException
        Closes this selector.

        This method is invoked by the close method in order to perform the actual work of closing the selector. This method is only invoked if the selector has not yet been closed, and it is never invoked more than once.

        An implementation of this method must arrange for any other thread that is blocked in a selection operation upon this selector to return immediately as if by invoking the wakeup method.

        Throws:
        IOException - If an I/O error occurs while closing the selector
      • isOpen
        public final boolean isOpen()
        Description copied from class: Selector
        Tells whether or not this selector is open.

        Specified by:
        isOpen in class Selector
        Returns:
        true if, and only if, this selector is open
      • provider
        public final SelectorProvider provider()
        Returns the provider that created this channel.
        Specified by:
        provider in class Selector
        Returns:
        The provider that created this channel
      • cancelledKeys
        protected final Set<SelectionKey> cancelledKeys()
        Retrieves this selector's cancelled-key set.

        This set should only be used while synchronized upon it.

        Returns:
        The cancelled-key set
      • register
        protected abstract SelectionKey register(AbstractSelectableChannel ch,
                            int ops,
                            Object att)
        Registers the given channel with this selector.

        This method is invoked by a channel's register method in order to perform the actual work of registering the channel with this selector.

        Parameters:
        ch - The channel to be registered
        ops - The initial interest set, which must be valid
        att - The initial attachment for the resulting key
        Returns:
        A new key representing the registration of the given channel with this selector
      • deregister
        protected final void deregister(AbstractSelectionKey key)
        Removes the given key from its channel's key set.

        This method must be invoked by the selector for each channel that it deregisters.

        Parameters:
        key - The selection key to be removed
      • begin
        protected final void begin()
        Marks the beginning of an I/O operation that might block indefinitely.

        This method should be invoked in tandem with the end method, using a try ... finally block as shown above, in order to implement interruption for this selector.

        Invoking this method arranges for the selector's wakeup method to be invoked if a thread's interrupt method is invoked while the thread is blocked in an I/O operation upon the selector.

      • end
        protected final void end()
        Marks the end of an I/O operation that might block indefinitely.

        This method should be invoked in tandem with the begin method, using a try ... finally block as shown above, in order to implement interruption for this selector.

Deutsche Übersetzung

Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.

Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.

Vielen Dank im Voraus.

Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-java/nio/channels/spi/abstractselector.html

Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.

Referenzen

  1. Zeigen Sie - html-Dokument Sprache des Dokuments:fr Manuel PHP : https://docs.oracle.com

Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor Diese Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.

Inhaltsverzeichnis Haut