@SuppressWarnings("Duplicates") @Test public void clearCache() { long aTimestamp = 1; assertThat(target.put("QuerySpace", aTimestamp, aTimestamp, null), is(true)); assertThat("value should be in the cache", (Long) target.get("QuerySpace", aTimestamp), is(aTimestamp)); target.clear(); assertThat("value should not be in the cache", target.get("QuerySpace", aTimestamp), nullValue()); }
@Override public boolean put(final Object key, final Object value, final long txTimestamp, final Object version) { boolean succeed = super.put(key, value, txTimestamp, version); if (succeed) { maybeNotifyTopic(key, value, version); } return succeed; }
TimestampsRegionCache extends LocalRegionCache implements RegionCache { @Override public boolean put(final Object key, final Object value, final long txTimestamp, final Object version) { boolean succeed = super.put(key, value, txTimestamp, version); if (succeed) { maybeNotifyTopic(key, value, version); } return succeed; } }
TimestampsRegionCache extends LocalRegionCache implements RegionCache { @Override public boolean put(final Object key, final Object value, final long txTimestamp, final Object version) { boolean succeed = super.put(key, value, txTimestamp, version); if (succeed) { maybeNotifyTopic(key, value, version); } return succeed; } TimestampsRegionCache(final RegionFactory regionFactory, final String name,
                                 final HazelcastInstance hazelcastInstance); }
TimestampsRegionCache extends LocalRegionCache implements RegionCache { @Override public boolean put(final Object key, final Object value, final long txTimestamp, final Object version) { boolean succeed = super.put(key, value, txTimestamp, version); if (succeed) { maybeNotifyTopic(key, value, version); } return succeed; } TimestampsRegionCache(final RegionFactory regionFactory, final String name,
                                 final HazelcastInstance hazelcastInstance); @Override void evictData(); @Override boolean put(final Object key, final Object value, final long txTimestamp, final Object version); }
TimestampsRegionCache extends LocalRegionCache implements RegionCache { @Override public boolean put(final Object key, final Object value, final long txTimestamp, final Object version) { boolean succeed = super.put(key, value, txTimestamp, version); if (succeed) { maybeNotifyTopic(key, value, version); } return succeed; } TimestampsRegionCache(final RegionFactory regionFactory, final String name,
                                 final HazelcastInstance hazelcastInstance); @Override void evictData(); @Override boolean put(final Object key, final Object value, final long txTimestamp, final Object version);  }