Examples of NullSink


Examples of org.apache.flume.sink.NullSink

    Collections.sort(out);
    Assert.assertEquals(in, out);
  }
  @Test
  public void testRollbackWithSink() throws Exception {
    final NullSink sink = new NullSink();
    sink.setChannel(channel);
    final int numItems = 99;
    Thread t = new Thread() {
      @Override
      public void run() {
        int count = 0;
        while(count++ < numItems) {
          try {
            sink.process();
            Thread.sleep(1);
          } catch(EventDeliveryException e) {
            break;
          } catch (Exception e) {
            Throwables.propagate(e);
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.