Examples of ReplicationQueue


Examples of org.jboss.cache.cluster.ReplicationQueue

      ComponentRegistry componentRegistry = TestingUtil.extractComponentRegistry(cache);
      InterceptorChain ic = componentRegistry.getComponent(InterceptorChain.class);
      List<CommandInterceptor> commands = ic.getInterceptorsWhichExtend(BaseRpcInterceptor.class);
      for (CommandInterceptor interceptor: commands)
      {
         ReplicationQueue original = (ReplicationQueue) TestingUtil.extractField(BaseRpcInterceptor.class, interceptor, "replicationQueue");
         TestingUtil.replaceField(new ReplicationQueueDelegate(original),"replicationQueue", interceptor, BaseRpcInterceptor.class);
         log("replaced replicationQueue in " + interceptor.getClass());
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.