fixed code template and format

This commit is contained in:
agapple
2015-04-28 21:11:41 +08:00
parent ea889cb004
commit 7ebb3fd1ab
86 changed files with 2763 additions and 3554 deletions

View File

@@ -31,7 +31,10 @@ import com.alibaba.otter.canal.store.model.Events;
*/
public class MemoryEventStoreMultiThreadTest extends MemoryEventStoreBase {
private ExecutorService executor = Executors.newFixedThreadPool(2); // 1 producer ,1 cousmer
private ExecutorService executor = Executors.newFixedThreadPool(2); // 1
// producer
// ,1
// cousmer
private MemoryEventStoreWithBuffer eventStore;
@Before
@@ -149,7 +152,8 @@ public class MemoryEventStoreMultiThreadTest extends MemoryEventStoreBase {
try {
Events<Event> entrys = eventStore.get(first, batchSize, 1000L, TimeUnit.MILLISECONDS);
// Events<Event> entrys = eventStore.tryGet(first, batchSize);
// Events<Event> entrys = eventStore.tryGet(first,
// batchSize);
if (!CollectionUtils.isEmpty(entrys.getEvents())) {
if (entrys.getEvents().size() != batchSize) {
System.out.println("get size:" + entrys.getEvents().size() + " with not full batchSize:"