/** * Fetches the current state of the resource based on the acceptor it matches * * @return Current state of the resource * @throws Exception */ private WaiterState getCurrentState() throws AmazonServiceException { try { return acceptor.accepts(sdkFunction.apply(request)); } catch (AmazonServiceException amazonServiceException) { return acceptor.accepts(amazonServiceException); } }
/** * Fetches the current state of the resource based on the acceptor it matches * * @return Current state of the resource * @throws Exception */ private WaiterState getCurrentState() throws AmazonServiceException { try { return acceptor.accepts(sdkFunction.apply(request)); } catch (AmazonServiceException amazonServiceException) { return acceptor.accepts(amazonServiceException); } }
/** * Fetches the current state of the resource based on the acceptor it matches * * @return Current state of the resource * @throws Exception */ private WaiterState getCurrentState() throws AmazonServiceException { try { return acceptor.accepts(sdkFunction.apply(request)); } catch (AmazonServiceException amazonServiceException) { return acceptor.accepts(amazonServiceException); } }