Skip to content

Instantly share code, notes, and snippets.

View dbrimley's full-sized avatar
🏠
Working from home

David Brimley dbrimley

🏠
Working from home
View GitHub Profile
@dbrimley
dbrimley / MapInterceptorMember.java
Created November 26, 2016 15:02
Expect throwing exception from the interceptRemove would short circuit the eviction.
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.core.IMap;
import com.hazelcast.map.MapInterceptor;
import java.util.concurrent.TimeUnit;
public class MapInterceptorMember {
public static void main(String[] args) throws InterruptedException {
@dbrimley
dbrimley / PutIfAbsentTest.java
Created November 22, 2016 14:46
Value Method is called using putIfAbsent
package com.craftedbytes.concurrency;
import org.junit.Test;
import java.util.concurrent.ConcurrentHashMap;
/**
* Created by davidbrimley on 22/11/2016.
*/
public class PutIfAbsentTest {