Package org.eclipse.jetty.util
Class PathWatcher.PathWatchEvent
- java.lang.Object
-
- org.eclipse.jetty.util.PathWatcher.PathWatchEvent
-
- Enclosing class:
- PathWatcher
public class PathWatcher.PathWatchEvent extends java.lang.Object
PathWatchEvent Represents a file event. Reported to registered listeners.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) long
checked
private PathWatcher.Config
config
(package private) long
length
(package private) long
modified
private java.nio.file.Path
path
private PathWatcher.PathWatchEventType
type
-
Constructor Summary
Constructors Constructor Description PathWatchEvent(java.nio.file.Path path, java.nio.file.WatchEvent<java.nio.file.Path> event, PathWatcher.Config config)
PathWatchEvent(java.nio.file.Path path, PathWatcher.PathWatchEventType type, PathWatcher.Config config)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private void
check()
boolean
equals(java.lang.Object obj)
PathWatcher.Config
getConfig()
int
getCount()
Deprecated.java.nio.file.Path
getPath()
PathWatcher.PathWatchEventType
getType()
int
hashCode()
boolean
isQuiet(long now, long quietTime)
void
modified()
long
toQuietCheck(long now, long quietTime)
java.lang.String
toString()
-
-
-
Field Detail
-
path
private final java.nio.file.Path path
-
type
private final PathWatcher.PathWatchEventType type
-
config
private final PathWatcher.Config config
-
checked
long checked
-
modified
long modified
-
length
long length
-
-
Constructor Detail
-
PathWatchEvent
public PathWatchEvent(java.nio.file.Path path, PathWatcher.PathWatchEventType type, PathWatcher.Config config)
-
PathWatchEvent
public PathWatchEvent(java.nio.file.Path path, java.nio.file.WatchEvent<java.nio.file.Path> event, PathWatcher.Config config)
-
-
Method Detail
-
getConfig
public PathWatcher.Config getConfig()
-
check
private void check()
-
isQuiet
public boolean isQuiet(long now, long quietTime)
-
toQuietCheck
public long toQuietCheck(long now, long quietTime)
-
modified
public void modified()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
getPath
public java.nio.file.Path getPath()
-
getType
public PathWatcher.PathWatchEventType getType()
-
getCount
@Deprecated public int getCount()
Deprecated.
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-