Guest User

Untitled

a guest
Mar 23rd, 2018
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class PublishingInMemoryFeatureStore extends InMemoryFeatureStore {
  2.  
  3. @Override
  4. public <T extends VersionedData> void upsert(VersionedDataKind<T> kind, T item) {
  5. String key = item.getKey();
  6. T current = get(kind, key);
  7. super.upsert(kind, item);
  8. T updated = get(kind, key);
  9. if (!Objects.equals(current, updated)) {
  10. // do publish
  11. }
  12. }
  13. }
Add Comment
Please, Sign In to add comment