Skip to content

Instantly share code, notes, and snippets.

@gurbuzali
Created May 14, 2015 09:00
Show Gist options
  • Save gurbuzali/61ae8d7630453be47700 to your computer and use it in GitHub Desktop.
Save gurbuzali/61ae8d7630453be47700 to your computer and use it in GitHub Desktop.
/*
* Copyright (c) 2008-2015, Hazelcast, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package coh;
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;
/**
* TODO add a proper JavaDoc
*/
public class CohSub {
public static void main(String[] args) throws InterruptedException {
NamedCache c = CacheFactory.getCache("c");
if (c.size() == 0) {
for (int i = 0; i < CohMain.DATA_COUNT; i++) {
if (i % 25000 == 0) {
System.err.println("asd i: " + i);
}
c.put(i, i);
}
System.err.println("fatal data filled !!!");
}
while (true) {
Thread.sleep(1000);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment