org.apache.curator.framework.api.transaction.TransactionSetDataBuilder Java Examples

The following examples show how to use org.apache.curator.framework.api.transaction.TransactionSetDataBuilder. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CuratorTransactionImpl.java    From xian with Apache License 2.0 5 votes vote down vote up
@Override
public TransactionSetDataBuilder setData()
{
    Preconditions.checkState(!isCommitted, "transaction already committed");

    return new SetDataBuilderImpl(client).asTransactionSetDataBuilder(this, transaction);
}
 
Example #2
Source File: MockCurator.java    From vespa with Apache License 2.0 4 votes vote down vote up
@Override
public TransactionSetDataBuilder setData() {
    ensureNotCommitted();
    return new MockTransactionSetDataBuilder();
}
 
Example #3
Source File: TransactionOpImpl.java    From curator with Apache License 2.0 4 votes vote down vote up
@Override
public TransactionSetDataBuilder<CuratorOp> setData()
{
    ExtractingCuratorOp op = new ExtractingCuratorOp();
    return new SetDataBuilderImpl(client).<CuratorOp>asTransactionSetDataBuilder(op, op.getRecord());
}