ink #read(String)}OtpErlangObject optValue = sc.read(otpKey).value(); // {@link #read(OtpErlangString)}
For the full example, see {@link de.zib.scalaris.examples.TransactionSingleOpReadExample}
Writing values
String key; String value; OtpErlangString otpKey; OtpErlangString otpValue; TransactionSingleOp sc = new TransactionSingleOp(); sc.write(key, value); // {@link #write(String,Object)}sc.writeObject(otpKey, otpValue); // {@link #write(OtpErlangString,OtpErlangObject)}
For the full example, see {@link de.zib.scalaris.examples.TransactionSingleOpWriteExample}
Connection errors
Errors when setting up connections or trying to send/receive RPCs will be handed to the {@link ConnectionPolicy} that has been set when the connectionwas created. By default, {@link ConnectionFactory} uses{@link DefaultConnectionPolicy} which implements automatic connectionretries by classifying nodes as good or bad depending on their previous state. The number of automatic retries is adjustable (default: 3).
@author Nico Kruber, kruber@zib.de
@version 3.9
@since 2.0