Package com.alibaba.otter.canal.sink.entry.group

Examples of com.alibaba.otter.canal.sink.entry.group.GroupEventSink.sink()


        executor.submit(new Runnable() {

            public void run() {
                for (int i = 0; i < 50; i++) {
                    try {
                        eventSink.sink(Arrays.asList(buildEntry("1", 1L + i, 1L + i)), address, "ljhtest1");
                        Thread.sleep(50L + RandomUtils.nextInt(50));
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here


                    }
                }

                for (int i = 0; i < 50; i++) {
                    try {
                        eventSink.sink(Arrays.asList(buildEntry("1", 1L + i, 30L + i)), address, "ljhtest1");
                        Thread.sleep(50L + RandomUtils.nextInt(50));
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here

        executor.submit(new Runnable() {

            public void run() {
                for (int i = 0; i < 50; i++) {
                    try {
                        eventSink.sink(Arrays.asList(buildEntry("1", 1L + i, 10L + i)), address, "ljhtest2");
                        Thread.sleep(50L + RandomUtils.nextInt(50));
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here

                    }
                }

                for (int i = 0; i < 50; i++) {
                    try {
                        eventSink.sink(Arrays.asList(buildEntry("1", 1L + i, 40L + i)), address, "ljhtest2");
                        Thread.sleep(50L + RandomUtils.nextInt(50));
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here

        executor.submit(new Runnable() {

            public void run() {
                for (int i = 0; i < 100; i++) {
                    try {
                        eventSink.sink(Arrays.asList(buildEntry("1", 1L + i, 30L + i)), address, "ljhtest3");
                        Thread.sleep(50L + RandomUtils.nextInt(50));
                    } catch (Exception e) {
                        e.printStackTrace();
                    }
                }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.