if (request.transactionType == TpccTerminal.NEW_ORDER) {
numWriteDequeued++;
numNewOrderDequeued++;
writeInQueueTime += endInQueueTime - request.timestamp;
newOrderInQueueTime += endInQueueTime - request.timestamp;
transaction = new NewOrderTransaction();
} else if (request.transactionType == TpccTerminal.PAYMENT) {
numWriteDequeued++;
numPaymentDequeued++;
writeInQueueTime += endInQueueTime - request.timestamp;
paymentInQueueTime += endInQueueTime - request.timestamp;