public interface HistoryService extends Service
Modifier and Type | Interface and Description |
---|---|
static class |
HistoryService.LookupSpeed
The lookup speed of a particular service.
|
Modifier and Type | Method and Description |
---|---|
HistoryService.LookupSpeed |
getLookupSpeed()
Retrieve the lookup (read) speed.
|
boolean |
hasFalseNegatives()
Whether or not this service returns false negatives.
|
boolean |
hasFalsePositives()
Whether or not this service may return false positives.
|
java.lang.Boolean |
hasPlayerHistory(org.bukkit.Location blockLocation)
Determines whether or not a block has been placed by a player.
|
getServiceName
HistoryService.LookupSpeed getLookupSpeed()
boolean hasFalsePositives()
If it does, HistoryProviders
may decide to inquire other services, if at all possible.
boolean hasFalseNegatives()
java.lang.Boolean hasPlayerHistory(org.bukkit.Location blockLocation) throws HistoryException
A service should return NULL if it cannot decide on a value, OR report that its return value is
always probabilistic (using hasFalsePositives()
or hasFalseNegatives()
).
blockLocation
- - location of the block in question.HistoryException