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

org.jclouds.aliyun.slb.loadbalancer.strategy.SLBDestroyLoadBalancerStrategy Maven / Gradle / Ivy

The newest version!
package org.jclouds.aliyun.slb.loadbalancer.strategy;

import javax.inject.Inject;

import org.jclouds.domain.Location;
import org.jclouds.loadbalancer.LoadBalancerServiceAdapter;
import org.jclouds.loadbalancer.domain.LoadBalancerMetadata;
import org.jclouds.loadbalancer.strategy.DestroyLoadBalancerStrategy;

public class SLBDestroyLoadBalancerStrategy implements DestroyLoadBalancerStrategy {

   protected final LoadBalancerServiceAdapter adapter;

   @Inject
   public SLBDestroyLoadBalancerStrategy (
         LoadBalancerServiceAdapter adapter) {
      this.adapter = adapter;
   }

   @Override
   public LoadBalancerMetadata destroyLoadBalancer(String id) {
      adapter.destroyLoadBalancer(id);
      return null;
   }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy