private static CacheConfiguration marshallerSystemCache(){
  CacheConfiguration cache=new CacheConfiguration();
  cache.setName(CU.MARSH_CACHE_NAME);
  cache.setCacheMode(REPLICATED);
  cache.setAtomicityMode(ATOMIC);
  cache.setSwapEnabled(false);
  cache.setRebalanceMode(SYNC);
  cache.setWriteSynchronizationMode(FULL_SYNC);
  cache.setAffinity(new RendezvousAffinityFunction(false,20));
  cache.setNodeFilter(CacheConfiguration.ALL_NODES);
  cache.setStartSize(300);
  cache.setRebalanceOrder(-2);
  cache.setCopyOnRead(false);
  return cache;
}

private static CacheConfiguration marshallerSystemCache ( ) { CacheConfiguration cache = new CacheConfiguration ( ) ; cache . setName ( CU . MARSH_CACHE_NAME ) ; cache . setCacheMode ( REPLICATED ) ; cache . setAtomicityMode ( ATOMIC ) ; cache . setSwapEnabled ( false ) ; cache . setRebalanceMode ( SYNC ) ; cache . setWriteSynchronizationMode ( FULL_SYNC ) ; cache . setAffinity ( new RendezvousAffinityFunction ( false , 20 ) ) ; cache . setNodeFilter ( CacheConfiguration . ALL_NODES ) ; cache . setStartSize ( 300 ) ; cache . setRebalanceOrder ( - 2 ) ; cache . setCopyOnRead ( false ) ; return cache ; }
creates marshaller system cache configuration .
