Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class PublishingInMemoryFeatureStore extends InMemoryFeatureStore {
- @Override
- public <T extends VersionedData> void upsert(VersionedDataKind<T> kind, T item) {
- String key = item.getKey();
- T current = get(kind, key);
- super.upsert(kind, item);
- T updated = get(kind, key);
- if (!Objects.equals(current, updated)) {
- // do publish
- }
- }
- }
Add Comment
Please, Sign In to add comment