/// <summary> /// Creates an instance of the OktoQueue class. /// </summary> /// <param name="flowId">FlowId uniqueue within this tenant.</param> /// <param name="conn">Connection for comms with the remote network agent.</param> internal OktoQueue(uint flowId, Connection conn) { this.flowId = flowId; this.conn = conn; vecLen = 1; TokSecVec[0] = ulong.MaxValue; bucketCapacity[0] = ulong.MaxValue; listRap = new List <RAP>(); conn.ListQueues.Add(this); costFuncVecRead = new CostFuncVec(); costFuncVecWrite = new CostFuncVec(); }
/// <summary> /// Creates an instance of the OktoQueue class. /// </summary> /// <param name="flowId">FlowId uniqueue within this tenant.</param> /// <param name="conn">Connection for comms with the remote network agent.</param> internal OktoQueue(uint flowId, Connection conn) { this.flowId = flowId; this.conn = conn; vecLen = 1; TokSecVec[0] = ulong.MaxValue; bucketCapacity[0] = ulong.MaxValue; listRap = new List<RAP>(); conn.ListQueues.Add(this); costFuncVecRead = new CostFuncVec(); costFuncVecWrite = new CostFuncVec(); }