本文整理汇总了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());
}
示例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);
}
示例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);
}