* <h3>Example usage:</h3>
*
* <pre>
- * private void doWrite( final int tries ) {
+ * private void doWrite(final int tries) {
* WriteTransaction writeTx = dataBroker.newWriteOnlyTransaction();
* MyDataObject data = ...;
* InstanceIdentifier<MyDataObject> path = ...;
- * writeTx.put( LogicalDatastoreType.OPERATIONAL, path, data );
- * Futures.addCallback( writeTx.submit(), new FutureCallback<Void>() {
- * public void onSuccess( Void result ) {
+ * writeTx.put(LogicalDatastoreType.OPERATIONAL, path, data);
+ * Futures.addCallback(writeTx.submit(), new FutureCallback<Void>() {
+ * public void onSuccess(Void result) {
* // succeeded
* }
- * public void onFailure( Throwable t ) {
- * if( t instanceof OptimisticLockFailedException ) {
- * if( ( tries - 1 ) > 0 ) {
+ * public void onFailure(Throwable t) {
+ * if(t instanceof OptimisticLockFailedException) {
+ * if(( tries - 1) > 0 ) {
* // do retry
- * doWrite( tries - 1 );
+ * doWrite(tries - 1);
* } else {
* // out of retries
* }
* } else {
* // failed due to another type of TransactionCommitFailedException.
* }
- * } );
+ * });
* }
* ...
- * doWrite( 2 );
+ * doWrite(2);
* </pre>
*
* <h2>Failure scenarios</h2>