Class CacheContainerServiceConfigurator

java.lang.Object
org.jboss.as.clustering.controller.CapabilityServiceNameProvider
org.jboss.as.clustering.infinispan.subsystem.CacheContainerServiceConfigurator
All Implemented Interfaces:
Consumer<org.infinispan.manager.EmbeddedCacheManager>, Function<org.infinispan.manager.EmbeddedCacheManager,org.infinispan.manager.EmbeddedCacheManager>, Supplier<org.infinispan.manager.EmbeddedCacheManager>, UnaryOperator<org.infinispan.manager.EmbeddedCacheManager>, ResourceServiceConfigurator, ServiceConfigurator, ServiceNameProvider

public class CacheContainerServiceConfigurator extends CapabilityServiceNameProvider implements ResourceServiceConfigurator, UnaryOperator<org.infinispan.manager.EmbeddedCacheManager>, Supplier<org.infinispan.manager.EmbeddedCacheManager>, Consumer<org.infinispan.manager.EmbeddedCacheManager>
Author:
Paul Ferraro
  • Constructor Details

    • CacheContainerServiceConfigurator

      public CacheContainerServiceConfigurator(org.jboss.as.controller.PathAddress address, org.wildfly.subsystem.service.capture.ServiceValueRegistry<org.infinispan.Cache<?,?>> registry)
  • Method Details

    • apply

      public org.infinispan.manager.EmbeddedCacheManager apply(org.infinispan.manager.EmbeddedCacheManager manager)
      Specified by:
      apply in interface Function<org.infinispan.manager.EmbeddedCacheManager,org.infinispan.manager.EmbeddedCacheManager>
    • get

      public org.infinispan.manager.EmbeddedCacheManager get()
      Specified by:
      get in interface Supplier<org.infinispan.manager.EmbeddedCacheManager>
    • accept

      public void accept(org.infinispan.manager.EmbeddedCacheManager manager)
      Specified by:
      accept in interface Consumer<org.infinispan.manager.EmbeddedCacheManager>
    • configure

      public CacheContainerServiceConfigurator configure(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode model) throws org.jboss.as.controller.OperationFailedException
      Specified by:
      configure in interface ResourceServiceConfigurator
      Throws:
      org.jboss.as.controller.OperationFailedException
    • build

      public org.jboss.msc.service.ServiceBuilder<?> build(org.jboss.msc.service.ServiceTarget target)
      Specified by:
      build in interface ServiceConfigurator
    • cacheStarted

      public CompletionStage<Void> cacheStarted(org.infinispan.notifications.cachemanagerlistener.event.CacheStartedEvent event)
    • cacheStopped

      public CompletionStage<Void> cacheStopped(org.infinispan.notifications.cachemanagerlistener.event.CacheStoppedEvent event)