Package com.cetsoft.imcache.bytebuffer

Examples of com.cetsoft.imcache.bytebuffer.OffHeapByteBufferStore


import com.cetsoft.imcache.cache.offheap.StaleItemException;

public class VersionedOffHeapCacheExample {
 
  public static void main(String [] args){
    OffHeapByteBufferStore bufferStore = new OffHeapByteBufferStore(10000,10);
    final Cache<String, VersionedItem<String>> cache =CacheBuilder.versionedOffHeapCache().
    storage(bufferStore).build();
    ExecutorService service = Executors.newFixedThreadPool(3);
    for (int i = 0; i < 100000; i++) {
      service.execute(new Runnable() {
View Full Code Here

TOP

Related Classes of com.cetsoft.imcache.bytebuffer.OffHeapByteBufferStore

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.