Class SentinelClient

java.lang.Object
dev.demeng.sentinel.client.SentinelClient

public final class SentinelClient extends Object
Client for the Sentinel API.

Use builder() to create an instance. The client is thread-safe and should be reused across requests. All license operations are accessed through licenses().


 SentinelClient client = SentinelClient.builder()
     .baseUrl("https://your-sentinel-instance.com")
     .apiKey("your-api-key")
     .build();

 // Validation
 ValidationResult result = client.licenses().validate(
     ValidationRequest.builder()
         .product("my-product")
         .server("server-1")
         .build());

 // CRUD
 License license = client.licenses().get("KEY-123");