当前位置: 首页>>代码示例>>Java>>正文


Java TransactionIsolation.fromOrdinal方法代码示例

本文整理汇总了Java中org.apache.ignite.transactions.TransactionIsolation.fromOrdinal方法的典型用法代码示例。如果您正苦于以下问题:Java TransactionIsolation.fromOrdinal方法的具体用法?Java TransactionIsolation.fromOrdinal怎么用?Java TransactionIsolation.fromOrdinal使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.ignite.transactions.TransactionIsolation的用法示例。


在下文中一共展示了TransactionIsolation.fromOrdinal方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: readExternal

import org.apache.ignite.transactions.TransactionIsolation; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException {
    readExternalMeta(in);

    xidVer = (GridCacheVersion)in.readObject();
    invalidate = in.readBoolean();
    timeout = in.readLong();
    threadId = in.readLong();
    startTime = in.readLong();

    nodeId = U.readUuid(in);

    isolation = TransactionIsolation.fromOrdinal(in.read());
    concurrency = TransactionConcurrency.fromOrdinal(in.read());

    state = TransactionState.fromOrdinal(in.read());
}
 
开发者ID:apache,项目名称:ignite,代码行数:18,代码来源:IgniteTxAdapter.java

示例2: readExternalData

import org.apache.ignite.transactions.TransactionIsolation; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundException {
    dfltConcurrency = TransactionConcurrency.fromOrdinal(in.readByte());
    dfltIsolation = TransactionIsolation.fromOrdinal(in.readByte());
    dfltTimeout = in.readLong();
    pessimisticTxLogLinger = in.readInt();
    pessimisticTxLogSize = in.readInt();
    txMgrFactory = U.readString(in);
}
 
开发者ID:apache,项目名称:ignite,代码行数:10,代码来源:VisorTransactionConfiguration.java

示例3: readFrom

import org.apache.ignite.transactions.TransactionIsolation; //导入方法依赖的package包/类
/** {@inheritDoc} */
@Override public boolean readFrom(ByteBuffer buf, MessageReader reader) {
    reader.setBuffer(buf);

    if (!reader.beforeMessageRead())
        return false;

    if (!super.readFrom(buf, reader))
        return false;

    switch (reader.state()) {
        case 21:
            byte isolationOrd;

            isolationOrd = reader.readByte("isolation");

            if (!reader.isLastRead())
                return false;

            isolation = TransactionIsolation.fromOrdinal(isolationOrd);

            reader.incrementState();

        case 22:
            miniId = reader.readInt("miniId");

            if (!reader.isLastRead())
                return false;

            reader.incrementState();

        case 23:
            nearNodeId = reader.readUuid("nearNodeId");

            if (!reader.isLastRead())
                return false;

            reader.incrementState();

        case 24:
            partUpdateCnt = reader.readMessage("partUpdateCnt");

            if (!reader.isLastRead())
                return false;

            reader.incrementState();

        case 25:
            pendingVers = reader.readCollection("pendingVers", MessageCollectionItemType.MSG);

            if (!reader.isLastRead())
                return false;

            reader.incrementState();

        case 26:
            writeVer = reader.readMessage("writeVer");

            if (!reader.isLastRead())
                return false;

            reader.incrementState();

    }

    return reader.afterMessageRead(GridDhtTxFinishRequest.class);
}
 
开发者ID:apache,项目名称:ignite,代码行数:68,代码来源:GridDhtTxFinishRequest.java


注:本文中的org.apache.ignite.transactions.TransactionIsolation.fromOrdinal方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。