PutKeyValueCommand putKeyValueCommand = new PutKeyValueCommand("key", "value", false, null, -1, -1, InfinispanCollections.<Flag>emptySet());
//populate commands
blockingCacheRpcCommand = new ReduceCommand<Object, Object>(cacheName);
nonBlockingCacheRpcCommand = new ClusteredGetCommand(cacheName);
blockingNonCacheRpcCommand = new CacheTopologyControlCommand();
//the GetKeyValueCommand is not replicated, but I only need a command that returns false in canBlock()
nonBlockingNonCacheRpcCommand = new GetKeyValueCommand("key", InfinispanCollections.<Flag>emptySet());
blockingSingleRpcCommand = new SingleRpcCommand(cacheName, putKeyValueCommand);
nonBlockingSingleRpcCommand = new SingleRpcCommand(cacheName, getKeyValueCommand);
blockingMultipleRpcCommand = new MultipleRpcCommand(Arrays.<ReplicableCommand>asList(putKeyValueCommand, putKeyValueCommand), cacheName);