TransactionReadExample
Date: 2016-02-29

de.zib.scalaris.examples

## Class TransactionReadExample

- java.lang.Object
- - de.zib.scalaris.examples.TransactionReadExample

-     public class TransactionReadExample
      extends Object

  Provides an example for using the `read` method of the `Transaction` class.
  Since:
    2.0
  Version:
    2.0
  Author:
    Nico Kruber, kruber@zib.de

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `TransactionReadExample()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `main(String[] args)` Reads all keys given on the command line (given as "key1 key2 ...") with the `AbstractTransaction.read(String)` and `AbstractTransaction.read(OtpErlangString)` methods in a single transaction. If no keys are given, the default keys `"key1"`, `"key2"`, `"key3"` are used.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TransactionReadExample

          public TransactionReadExample()

  - ### Method Detail

    - #### main

          public static void main(String[] args)

      Reads all keys given on the command line (given as "key1 key2 ...") with the `AbstractTransaction.read(String)` and `AbstractTransaction.read(OtpErlangString)` methods in a single transaction.
      If no keys are given, the default keys `"key1"`, `"key2"`, `"key3"` are used.
      Parameters:
        `args` - command line arguments (optional keys to look up)