Context channelCtx = new Context();
channelCtx.put("capacity", String.valueOf(1000L));
channelCtx.put("transactionCapacity", String.valueOf(1000L));
Configurables.configure(channel, channelCtx);
sink.setChannel(channel);
channel.start();
return channel;
}
private void putEvents(Channel channel, Iterable<Event> events) {
Transaction tx = channel.getTransaction();