Class ChannelServiceConfigurator

java.lang.Object
org.jboss.as.clustering.controller.CapabilityServiceNameProvider
org.jboss.as.clustering.jgroups.subsystem.ChannelServiceConfigurator
All Implemented Interfaces:
Consumer<org.jgroups.JChannel>, Supplier<org.jgroups.JChannel>, ResourceServiceConfigurator, ServiceConfigurator, ServiceNameProvider

public class ChannelServiceConfigurator extends CapabilityServiceNameProvider implements ResourceServiceConfigurator, Supplier<org.jgroups.JChannel>, Consumer<org.jgroups.JChannel>
Provides a connected channel for use by dependent services.
Author:
Paul Ferraro
  • Constructor Details

    • ChannelServiceConfigurator

      public ChannelServiceConfigurator(Capability capability, org.jboss.as.controller.PathAddress address)
  • Method Details

    • statisticsEnabled

      public ChannelServiceConfigurator statisticsEnabled(boolean enabled)
    • build

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

      public ServiceConfigurator 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
    • get

      public org.jgroups.JChannel get()
      Specified by:
      get in interface Supplier<org.jgroups.JChannel>
    • accept

      public void accept(org.jgroups.JChannel channel)
      Specified by:
      accept in interface Consumer<org.jgroups.JChannel>