public abstract class AbstractResource extends java.lang.Object implements FileSystemResource
| Constructor and Description |
|---|
AbstractResource() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkpoint()
Sets a check-point for tracking when the resource has changed.
|
FileSystemResourceState |
getState()
Returns the current state of the resource.
|
boolean |
isChanged()
Returns true if the resource was modified since the last time it was check-pointed.
|
void |
setState(FileSystemResourceState state)
Sets the current state of the resource.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLocation, getName, getTimestamppublic FileSystemResourceState getState()
FileSystemResourcegetState in interface FileSystemResourcepublic void setState(FileSystemResourceState state)
FileSystemResourcesetState in interface FileSystemResourcestate - the resource statepublic boolean isChanged()
FileSystemResourceisChanged in interface FileSystemResourcepublic void checkpoint()
FileSystemResourcecheckpoint in interface FileSystemResource