Interface DeletableResource

All Known Subinterfaces:
Agent, CloudRouter, CompanyProfile, Connection, EiaService, IpBlock, Network, PrecisionTime, RouteAggregation, RouteAggregationRule, RouteFilter, RouteFilterRule, RoutingProtocol, ServiceProfile, ServiceToken, Stream, StreamAlertRule, StreamSubscription
All Known Implementing Classes:
AgentWrapper, CloudRouterWrapper, CompanyProfileWrapper, ConnectionWrapper, EiaServiceWrapper, IpBlockWrapper, NetworkWrapper, PrecisionTimeWrapper, RouteAggregationRuleWrapper, RouteAggregationWrapper, RouteFilterRuleWrapper, RouteFilterWrapper, RoutingProtocolWrapper, ServiceProfileWrapper, ServiceTokenWrapper, StreamAlertRuleWrapper, StreamSubscriptionWrapper, StreamWrapper

public interface DeletableResource
A Fabric resource model whose delete(...) can be called on the model itself.

After a successful delete the model stays usable: when the service answers with a body (for example a connection or Cloud Router in a DEPROVISIONING state) the model adopts it; when it answers 204 No Content the model keeps its last-known state. Either way isDeleted() turns true, and the getters keep returning values instead of throwing.

  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Returns whether delete(...) was called successfully on this model instance.
  • Method Details

    • isDeleted

      boolean isDeleted()
      Returns whether delete(...) was called successfully on this model instance.
      Returns:
      true once this instance has been deleted