IT. Expert System.

Java Standard Edition (SE)

WatchEvent


compact1, compact2, compact3
java.nio.file

Interface WatchEvent<T>

  • Type Parameters:
    T - The type of the context object associated with the event


    public interface WatchEvent<T>
    An event or a repeated event for an object that is registered with a WatchService.

    An event is classified by its kind and has a count to indicate the number of times that the event has been observed. This allows for efficient representation of repeated events. The context method returns any context associated with the event. In the case of a repeated event then the context is the same for all events.

    Watch events are immutable and safe for use by multiple concurrent threads.

    Since:
    1.7
    • Method Detail

      • kind

        WatchEvent.Kind<T> kind()
        Returns the event kind.
        Returns:
        the event kind
      • count

        int count()
        Returns the event count. If the event count is greater than 1 then this is a repeated event.
        Returns:
        the event count
      • context

        T context()
        Returns the context for the event.

        In the case of ENTRY_CREATE, ENTRY_DELETE, and ENTRY_MODIFY events the context is a Path that is the relative path between the directory registered with the watch service, and the entry that is created, deleted, or modified.

        Returns:
        the event context; may be null


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 3038 / . Delta: 0.02663 с