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.
-
-
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 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()
-
-
-
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()
-
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()
-
-