} else if (request.transactionType == TpccTerminal.PAYMENT) {
numWriteDequeued++;
numPaymentDequeued++;
writeInQueueTime += endInQueueTime - request.timestamp;
paymentInQueueTime += endInQueueTime - request.timestamp;
transaction = new PaymentTransaction(nodeIndex);
} else if (request.transactionType == TpccTerminal.ORDER_STATUS) {
numReadDequeued++;
readInQueueTime += endInQueueTime - request.timestamp;
transaction = new OrderStatusTransaction();
}