Exemplo n.º 1
0
 @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;
 }
Exemplo n.º 2
0
 /**
  * Send a simple text message.
  *
  * @param message
  * @throws IOException
  */
 public void send(String message) throws IOException {
   send(new Payload(message));
 }