@Override public Boolean call() throws Exception { try { slacker.send(payload); return true; } catch (IOException e) { log.error("Failed to send asynchronously to Slack!", e); } return false; }
/** * Send a simple text message. * * @param message * @throws IOException */ public void send(String message) throws IOException { send(new Payload(message)); }