public EtcdResult cad ( String key , Map < String , String > params ) throws EtcdClientException { URI uri = buildUriWithKeyAndParams ( key , params ) ; HttpDelete httpDelete = new HttpDelete ( uri ) ; return syncExecute ( httpDelete , new int [ ] { 200 , 412 } , 101 ) ; }
Atomic Compare - and - Delete