| | |
| | | private BlockingQueue<UpdateToReplay> updateToReplayQueue = null; |
| | | private boolean shutdown = false; |
| | | private boolean done = false; |
| | | private static int count = 0; |
| | | |
| | | /** |
| | | * Constructor for the ReplayThread. |
| | |
| | | */ |
| | | public ReplayThread(BlockingQueue<UpdateToReplay> updateToReplayQueue) |
| | | { |
| | | super("Replication Replay thread"); |
| | | super("Replication Replay thread " + count++); |
| | | this.updateToReplayQueue = updateToReplayQueue; |
| | | } |
| | | |
| | |
| | | { |
| | | try |
| | | { |
| | | while (done == false) |
| | | while ((done == false) && (this.isAlive())) |
| | | { |
| | | Thread.sleep(50); |
| | | } |