/** * @param item * @throws IOException */ @Override public void update( ICacheElement<K, V> item ) throws IOException { update( item, 0 ); }
/** * @param item * @throws IOException */ @Override public void update( ICacheElement<K, V> item ) throws IOException { update( item, 0 ); }
/** * Puts a cache bean to the remote cache and notifies all listeners which <br> * <ol> * <li>have a different listener id than the originating host;</li> * <li>are currently subscribed to the related cache.</li> * </ol> * <p> * @param item * @throws IOException */ public void put( ICacheElement<K, V> item ) throws IOException { update( item ); }
/** * Puts a cache bean to the remote cache and notifies all listeners which <br> * <ol> * <li>have a different listener id than the originating host; <li>are currently subscribed to * the related cache. * </ol> * <p> * @param item * @throws IOException */ public void put( ICacheElement<K, V> item ) throws IOException { update( item ); }
server.update( element, 9999 );
server.update( element, 9999 );
/** * Verify event log calls. * <p> * @throws Exception */ public void testUpdate_simple() throws Exception { MockCacheEventLogger cacheEventLogger = new MockCacheEventLogger(); server.setCacheEventLogger( cacheEventLogger ); ICacheElement<String, String> item = new CacheElement<String, String>( "region", "key", "value" ); // DO WORK server.update( item ); // VERIFY assertEquals( "Start should have been called.", 1, cacheEventLogger.startICacheEventCalls ); assertEquals( "End should have been called.", 1, cacheEventLogger.endICacheEventCalls ); }
/** * Verify event log calls. * <p> * @throws Exception */ public void testUpdate_simple() throws Exception { MockCacheEventLogger cacheEventLogger = new MockCacheEventLogger(); server.setCacheEventLogger( cacheEventLogger ); ICacheElement<String, String> item = new CacheElement<String, String>( "region", "key", "value" ); // DO WORK server.update( item ); // VERIFY assertEquals( "Start should have been called.", 1, cacheEventLogger.startICacheEventCalls ); assertEquals( "End should have been called.", 1, cacheEventLogger.endICacheEventCalls ); }
inputItems.add( element ); server.update( element, clusterListener.getListenerId() );
inputItems.add( element ); server.update( element, clusterListener.getListenerId() );