Esempio 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;
 }
 @Override
 public void stop() {
   Slacker.instance().stop();
   log.debug("{} STOPPED.", getWrapper().getPluginId());
 }
  public Plugin(PluginWrapper wrapper) {
    super(wrapper);

    IRuntimeManager runtimeManager = GitblitContext.getManager(IRuntimeManager.class);
    Slacker.init(runtimeManager);
  }