All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.almworks.jira.structure.api.pinger.Pinger Maven / Gradle / Ivy

There is a newer version: 17.25.3
Show newest version
package com.almworks.jira.structure.api.pinger;

import com.atlassian.annotations.Internal;

@Internal
public interface Pinger {
  int MIN_PING_TIME = 500;
  
  void ping(Pingable subject, long period);
  void stopPinging(Pingable subject);

  /**
   * Implement to be pinged
   */
  interface Pingable {
    /**
     * @return true = continue pinging, false = stop pinging me, exception = stop pinging me (and log exception)
     */
    boolean ping(long now) throws Exception;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy