All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.cdi.event.cachemanager.ViewChangedAdapter Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.cdi.event.cachemanager;

import org.infinispan.commons.util.InfinispanCollections;
import org.infinispan.manager.EmbeddedCacheManager;
import org.infinispan.notifications.Listener;
import org.infinispan.notifications.cachemanagerlistener.annotation.ViewChanged;
import org.infinispan.notifications.cachemanagerlistener.event.ViewChangedEvent;
import org.infinispan.remoting.transport.Address;

import javax.enterprise.event.Event;
import java.util.List;

/**
 * @author Pete Muir
 */
@Listener
public class ViewChangedAdapter extends AbstractAdapter {

   public static final ViewChangedEvent EMPTY = new ViewChangedEvent() {

      @Override
      public Type getType() {
         return null;
      }

      @Override
      public EmbeddedCacheManager getCacheManager() {
         return null;
      }

      @Override
      public List
getNewMembers() { return InfinispanCollections.emptyList(); } @Override public List
getOldMembers() { return InfinispanCollections.emptyList(); } @Override public Address getLocalAddress() { return null; } public boolean isNeedsToRejoin() { return false; } @Override public int getViewId() { return 0; } @Override public boolean isMergeView() { return false; } }; public ViewChangedAdapter(Event event) { super(event); } @Override @ViewChanged public void fire(ViewChangedEvent payload) { super.fire(payload); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy