* Client-side view of a local history. This class tracks all state related to a particular history and routes
* frontend requests towards the backend.
*
+ * <p>
* This interface is used by the world outside of the actor system and in the actor system it is manifested via
* its client actor. That requires some state transfer with {@link DistributedDataStoreClientBehavior}. In order to
* reduce request latency, all messages are carbon-copied (and enqueued first) to the client actor.
Preconditions.checkState(local == State.IDLE, "Local history %s state is %s", this, local);
updateState(local, State.TX_OPEN);
- return new ClientTransaction(getClient(), this,
- new TransactionIdentifier(getIdentifier(), NEXT_TX_UPDATER.getAndIncrement(this)));
+ return new ClientTransaction(this, new TransactionIdentifier(getIdentifier(),
+ NEXT_TX_UPDATER.getAndIncrement(this)));
}
@Override