/** * Sets the maximum time (in ms) a match operation tries to perform * a match. * * @param ms Total number of ms to wait for a match. */ @SuppressWarnings("UnusedDeclaration") public void setMatchTimeout(int ms) { final int MIN_MATCH_TIMEOUT = 500; if (getIsDisabled()) { logger.verbose("Ignored"); return; } logger.verbose("Setting match timeout to: " + ms); if ((ms != 0) && (MIN_MATCH_TIMEOUT > ms)) { throw new IllegalArgumentException("Match timeout must be set in milliseconds, and must be > " + MIN_MATCH_TIMEOUT); } this.matchTimeout = ms; }
/** * Sets the maximal time (in seconds) a match operation tries to perform * a match. * * @param seconds Total number of seconds to wait for a match. */ @SuppressWarnings("UnusedDeclaration") public void setMatchTimeout(int seconds) { if (getIsDisabled()) { logger.verbose("Ignored"); return; } logger.verbose("setMatchTimeout(" + seconds + ")"); ArgumentGuard.greaterThanOrEqualToZero(seconds, "seconds"); this.matchTimeout = seconds; logger.log("Match timeout set to " + seconds + " second(s)"); }
/** * Sets the maximal time (in seconds) a match operation tries to perform * a match. * * @param seconds Total number of seconds to wait for a match. */ @SuppressWarnings("UnusedDeclaration") public void setMatchTimeout(int seconds) { if (getIsDisabled()) { logger.verbose("Ignored"); return; } logger.verbose("setMatchTimeout(" + seconds + ")"); ArgumentGuard.greaterThanOrEqualToZero(seconds, "seconds"); this.matchTimeout = seconds; logger.log("Match timeout set to " + seconds + " second(s)"); }
if (getIsDisabled()) { logger.verbose(String.format("Ignoring '%s' (disabled)", text)); return;
if (getIsDisabled()) { logger.verbose(String.format("Ignoring '%s' (disabled)", text)); return;
if (getIsDisabled()) { logger.verbose(String.format("Ignoring '%s' (disabled)", text)); return;
int timeout, long matchInterval) { if (getIsDisabled()) { logger.verbose("Ignored"); return null;
if (getIsDisabled()) { logger.verbose(String.format("Ignoring %s (disabled)", action)); return;
if (getIsDisabled()) { logger.verbose(String.format("Ignoring %s (disabled)", action)); return;
int timeout, long matchInterval) { if (getIsDisabled()) { logger.verbose("Ignored"); return null;
int timeout, long matchInterval) { if (getIsDisabled()) { logger.verbose("Ignored"); return null;
if (getIsDisabled()) { logger.verbose(String.format("Ignoring %s (disabled)", action)); return;
if (getIsDisabled()) { logger.verbose("Ignored"); result = new MatchResult();
if (getIsDisabled()) { logger.verbose("Ignored"); result = new MatchResult();
if (getIsDisabled()) { logger.verbose("Ignored"); result = new MatchResult();