public class PollResult extends Object
Modifier and Type | Method and Description |
---|---|
static PollResult |
createFull(Map<String,Object> complete)
Create a full result that represents the complete content of the configuration source.
|
static PollResult |
createIncremental(Map<String,Object> added,
Map<String,Object> changed,
Map<String,Object> deleted,
Object checkPoint)
Create a result that represents incremental changes from the configuration
source.
|
Map<String,Object> |
getAdded() |
Map<String,Object> |
getChanged() |
Object |
getCheckPoint() |
Map<String,Object> |
getComplete()
Get complete content from configuration source.
|
Map<String,Object> |
getDeleted() |
boolean |
hasChanges()
Indicate whether this result has any content.
|
boolean |
isIncremental() |
public static PollResult createFull(Map<String,Object> complete)
complete
- map that contains all the propertiespublic static PollResult createIncremental(Map<String,Object> added, Map<String,Object> changed, Map<String,Object> deleted, Object checkPoint)
added
- properties addedchanged
- properties changeddeleted
- properties deleted, in which case the value in the map will be ignoredcheckPoint
- Object that served as a marker for this incremental change, for example, a time stamp
of the last change.public final boolean hasChanges()
getComplete()
is null.public final Map<String,Object> getComplete()
public final Map<String,Object> getAdded()
public final Map<String,Object> getChanged()
public final Map<String,Object> getDeleted()
public final boolean isIncremental()
public final Object getCheckPoint()
Copyright © 2020. All Rights Reserved.