StandardWatchEventKinds
Stay organized with collections
Save and categorize content based on your preferences.
Defines the standard event kinds.
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals( Object obj)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Invoked when the garbage collector has detected that this instance is no longer reachable.
|
final
Class<?>
|
getClass()
Returns the unique instance of Class that represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long timeout, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long timeout)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
Fields
public
static
final
Kind<Path>
ENTRY_CREATE
Directory entry created.
When a directory is registered for this event then the WatchKey
is queued when it is observed that an entry is created in the directory
or renamed into the directory. The event count
for this event is always 1
.
public
static
final
Kind<Path>
ENTRY_DELETE
Directory entry deleted.
When a directory is registered for this event then the WatchKey
is queued when it is observed that an entry is deleted or renamed out of
the directory. The event count
for this event
is always 1
.
public
static
final
Kind<Path>
ENTRY_MODIFY
Directory entry modified.
When a directory is registered for this event then the WatchKey
is queued when it is observed that an entry in the directory has been
modified. The event count
for this event is
1
or greater.
public
static
final
Kind<Object>
OVERFLOW
A special event to indicate that events may have been lost or
discarded.
The context
for this event is
implementation specific and may be null
. The event count
may be greater than 1
.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["`StandardWatchEventKinds` defines standard event types used in file system monitoring."],["The events `ENTRY_CREATE`, `ENTRY_DELETE`, and `ENTRY_MODIFY` track the creation, deletion, and modification of directory entries, respectively."],["`OVERFLOW` is a special event type that indicates potential loss of file system events."],["Event details like count and context are provided by `WatchEvent` objects."]]],["`StandardWatchEventKinds` defines standard file system event types. Key actions include monitoring directory entry changes: `ENTRY_CREATE` (entry created), `ENTRY_DELETE` (entry deleted), and `ENTRY_MODIFY` (entry modified). Each of these events has a count of 1, with a `WatchKey` being queued. The `OVERFLOW` event indicates potential loss of events and its context may be null; its count can be greater than 1. These are the standard events for a `WatchService`.\n"]]