- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {ScheduledThreadPoolExecutor s =
new ScheduledThreadPoolExecutor(corePoolSize)
ThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
String str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
- Smart code suggestions by Codota
}
.createReplicationSlot() .logical() .withSlotName(slotName)
private void createRplSlot() throws SQLException { try { this.rplConnection.getReplicationAPI() .createReplicationSlot() .logical() .withSlotName(this.jdbcConfig.getSlotName()) .withOutputPlugin("test_decoding") .make(); } catch (SQLException e) { String msg = "ERROR: replication slot \"" + this.jdbcConfig.getSlotName() + "\" already exists"; if (msg.equals(e.getMessage())) { return; } throw e; } log.info("GetRplSlot success,slot:{}", this.slotName); }
.createReplicationSlot() .logical() .withSlotName(slotName)