com.ibm.portal.resolver.data
Interface DataSourceChecksum
- All Superinterfaces:
- Addressable, DataSource, DataSourceFragment, Disposable, TimeStamped
- All Known Implementing Classes:
- AbstractDataSource
-
public interface DataSourceChecksum
- extends DataSource
Provides the checksum for a data source. May be optionally implemented by
DataSource implementations.
- Since:
- 8.0.0.1
- Note:
This interface is designed to be implemented by clients. |
Field Summary
|
static long |
NONE
special checksum value indicating no checksum is available |
Method Summary
|
long |
getChecksum()
Return the checksum of the data source. |
boolean |
isWeak()
Returns whether this is a "strong" or "weak" checksum. |
NONE
static final long NONE
- special checksum value indicating no checksum is available
- See Also:
- Constant Field Values
getChecksum
long getChecksum()
- Returns the checksum of the data source.
- Returns:
- the checksum of the data source. The special value NONE
indicates that no checksum has been computed.
isWeak
boolean isWeak()
- Returns whether this is a "strong" or "weak" checksum. A "strong"
checksum changes, whenever any aspect of the resources the data source
represents change, the "weak" checksum only changes when significant
changes to the resources occured.
- Returns:
- true if the checksum is "weak", false
otherwise.