|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectstec.sfc.Win32.FileSystemChangeListener
public final class FileSystemChangeListener
Used to monitor and dispatch associated FileSystemChangeNotifications.
FileSystemChangeNotification
Constructor Summary | |
---|---|
FileSystemChangeListener(FileSystemChangeNotification change_notification)
Constructs a new FileSystemChangeListener that monitors the specified FileSystemChangeNotification. |
|
FileSystemChangeListener(FileSystemChangeNotification[] change_notifications)
Constructs a new FileSystemChangeListener that monitors the specified FileSystemChangeNotifications. |
|
FileSystemChangeListener(FileSystemChangeNotification[] change_notifications,
int timeout)
Constructs a new FileSystemChangeListener that monitors the specified FileSystemChangeNotifications. |
|
FileSystemChangeListener(FileSystemChangeNotification change_notification,
int timeout)
Constructs a new FileSystemChangeListener that monitors the specified FileSystemChangeNotification. |
Method Summary | |
---|---|
boolean |
isRunning()
Returns whether the monitor thread is running. |
void |
processFailure(java.lang.Throwable throwable)
Called by the monitor thread when an error occurs while monitoring for change notifications. |
void |
run()
Internally called by the monitor thread while running to monitor and dispatch change notifications. |
void |
stop()
Used to stop the monitor thread. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemChangeListener(FileSystemChangeNotification[] change_notifications) throws java.lang.IllegalArgumentException
change_notifications
- one or more FileSystemChangeNotifications to monitor.
java.lang.IllegalArgumentException
- if change_notifications was emptyFileSystemChangeNotification
public FileSystemChangeListener(FileSystemChangeNotification[] change_notifications, int timeout) throws java.lang.IllegalArgumentException
change_notifications
- one or more FileSystemChangeNotifications to monitor.timeout
- the number of milliseconds to wait for a change notification before timing out. -1 for unlimited. Specifying a timeout that is too large may result in thread stalls and may have a negative impact on performance.
java.lang.IllegalArgumentException
- if change_notifications was emptyFileSystemChangeNotification
public FileSystemChangeListener(FileSystemChangeNotification change_notification)
change_notification
- the FileSystemChangeNotification to monitor.FileSystemChangeNotification
public FileSystemChangeListener(FileSystemChangeNotification change_notification, int timeout)
change_notification
- the FileSystemChangeNotification to monitor.timeout
- the number of milliseconds to wait for a change notification before timing out. -1 for unlimited. Specifying a timeout that is too large may result in thread stalls and may have a negative impact on performance.FileSystemChangeNotification
Method Detail |
---|
public final void run()
Monitors for change notifications and calls appropriate FileSystemChangeHandler.
run
in interface java.lang.Runnable
FileSystemChangeHandler
public final void stop() throws java.lang.IllegalStateException
java.lang.IllegalStateException
- if the FileSystemChangeLister thread is not running.public final boolean isRunning()
public final void processFailure(java.lang.Throwable throwable)
throwable
- the error that occurred.
|
Servertec Foundation Classes 1.3.3 09/04/2005 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2001-2005 Servertec. All rights reserved.