Skip to content

Instantly share code, notes, and snippets.

Created October 18, 2016 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/f9808a9409b44f878b07989e339a8743 to your computer and use it in GitHub Desktop.
Save anonymous/f9808a9409b44f878b07989e339a8743 to your computer and use it in GitHub Desktop.
final WriteTransaction transaction = databroker.newWriteOnlyTransaction();
transaction.delete(LogicalDatastoreType.CONFIGURATION, flowIID);
CheckedFuture<Void, TransactionCommitFailedException> future = transaction.submit();
try {
future.checkedGet();
} catch (TransactionCommitFailedException e) {
LOG.warn("Failed to delete {} ", path, e);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment