org.apache.avalon.excalibur.monitor
Interface Modifiable

All Known Implementing Classes:
Resource

public interface Modifiable

This interface is used by the Monitor section so that we can test if a resource is modified by an external source.

Version:
$Id: Modifiable.java,v 1.3 2001/12/11 09:53:30 jefft Exp $
Author:
Berin Loritsch

Method Summary
 long lastModified()
          Simply provides the last time the resource has been modified.
 void testModifiedAfter(long time)
          Tests if a resource has been modified, and causes the resource to act on that test.
 

Method Detail

testModifiedAfter

public void testModifiedAfter(long time)
Tests if a resource has been modified, and causes the resource to act on that test. The contract is that the method does its work only when the time passed in is after the last time the resource was modified.

lastModified

public long lastModified()
Simply provides the last time the resource has been modified.


Copyright © 2001 Apache Jakarta Project. All Rights Reserved.