1 21 22 package org.continuent.sequoia.controller.loadbalancer; 23 24 import java.util.LinkedList ; 25 26 import org.continuent.sequoia.controller.loadbalancer.tasks.AbstractTask; 27 28 36 public class BackendTaskQueueEntry 37 { 38 AbstractTask task; 39 private LinkedList queue; 40 BackendWorkerThread processingThread; 41 private boolean isACommitOrRollback; 42 43 50 public BackendTaskQueueEntry(AbstractTask task, LinkedList queue, 51 boolean isACommitOrRollback) 52 { 53 this.task = task; 54 this.queue = queue; 55 this.processingThread = null; 56 this.isACommitOrRollback = isACommitOrRollback; 57 } 58 59 65 public final BackendWorkerThread getProcessingThread() 66 { 67 return processingThread; 68 } 69 70 75 public final boolean isACommitOrRollback() 76 { 77 return isACommitOrRollback; 78 } 79 80 85 public final void setProcessingThread(BackendWorkerThread processingThread) 86 { 87 this.processingThread = processingThread; 88 } 89 90 95 public final LinkedList getQueue() 96 { 97 return queue; 98 } 99 100 105 public final AbstractTask getTask() 106 { 107 return task; 108 } 109 110 115 public void setQueue(LinkedList queue) 116 { 117 this.queue = queue; 118 } 119 120 124 public String toString() 125 { 126 return getTask().toString(); 127 } 128 } | Popular Tags |