/** {@inheritDoc} */ @Override public long requestId() { return U.bytesToInt(opaque, 0); }
/** * Gets 4 bytes from byte list as an integer. * * @param i Index into the byte list. * @return Integer starting at index location. */ public int getInt(int i) { assert i + 4 <= size; return U.bytesToInt(data, i); }
return bytes[0] == '1'; case INT_FLAG: return U.bytesToInt(bytes, 0); case LONG_FLAG: return U.bytesToLong(bytes, 0); return bytes[0]; case FLOAT_FLAG: return Float.intBitsToFloat(U.bytesToInt(bytes, 0)); case DOUBLE_FLAG: return Double.longBitsToDouble(U.bytesToLong(bytes, 0));
return bytes[0] == '1'; case INT_FLAG: return U.bytesToInt(bytes, 0); case LONG_FLAG: return U.bytesToLong(bytes, 0); return bytes[0]; case FLOAT_FLAG: return Float.intBitsToFloat(U.bytesToInt(bytes, 0)); case DOUBLE_FLAG: return Double.longBitsToDouble(U.bytesToLong(bytes, 0));
resType = U.bytesToInt(hdr, 0);
resType = U.bytesToInt(hdr, 0);
len = U.bytesToInt(lenBytes, 0);
req.totalLength(U.bytesToInt(tmp.toByteArray(), 0));
req.totalLength(U.bytesToInt(tmp.toByteArray(), 0));
metrics.setMaximumActiveJobs(U.bytesToInt(data, off)); metrics.setCurrentActiveJobs(U.bytesToInt(data, off)); metrics.setMaximumWaitingJobs(U.bytesToInt(data, off)); metrics.setCurrentWaitingJobs(U.bytesToInt(data, off)); metrics.setMaximumRejectedJobs(U.bytesToInt(data, off)); metrics.setCurrentRejectedJobs(U.bytesToInt(data, off)); metrics.setMaximumCancelledJobs(U.bytesToInt(data, off)); metrics.setCurrentCancelledJobs(U.bytesToInt(data, off)); metrics.setTotalRejectedJobs(U.bytesToInt(data, off)); metrics.setTotalCancelledJobs(U.bytesToInt(data, off)); metrics.setTotalExecutedJobs(U.bytesToInt(data, off)); metrics.setTotalExecutedTasks(U.bytesToInt(data, off)); metrics.setAvailableProcessors(U.bytesToInt(data, off)); metrics.setCurrentThreadCount(U.bytesToInt(data, off)); metrics.setMaximumThreadCount(U.bytesToInt(data, off));
req.length(U.bytesToInt(hdr, 20));
ses + ", opCode=" + Integer.toHexString(req.operationCode() & 0xFF) + ']'); req.expiration(U.bytesToInt(extras, 4) & 0xFFFFFFFFL);
req.length(U.bytesToInt(hdr, 20));
ses + ", opCode=" + Integer.toHexString(req.operationCode() & 0xFF) + ']'); req.expiration(U.bytesToInt(extras, 4) & 0xFFFFFFFFL);
int ordinal = U.bytesToInt(hdr, 8);
int ordinal = U.bytesToInt(hdr, 8);