Package org.radargun.traits

Examples of org.radargun.traits.CacheListeners


      protected void registerListeners() {
         if (!manager.getLogLogicConfiguration().isCheckNotifications()) {
            return;
         }
         CacheListeners listeners = manager.getListeners();
         if (listeners == null) {
            throw new IllegalArgumentException("Service does not support cache listeners");
         }
         Collection<CacheListeners.Type> supported = listeners.getSupportedListeners();
         if (!supported.containsAll(Arrays.asList(CacheListeners.Type.CREATED, CacheListeners.Type.UPDATED))) {
            throw new IllegalArgumentException("Service does not support required listener types; supported are: " + supported);
         }
         String cacheName = manager.getGeneralConfiguration().getCacheName();
         manager.getListeners().addCreatedListener(cacheName, this);
View Full Code Here

TOP

Related Classes of org.radargun.traits.CacheListeners

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.