1 14 15 package org.dbunit.util.concurrent; 16 17 258 259 260 public interface Sync { 261 262 270 271 public void acquire() throws InterruptedException ; 272 273 296 297 public boolean attempt(long msecs) throws InterruptedException ; 298 299 310 311 public void release(); 312 313 314 public static final long ONE_SECOND = 1000; 315 316 317 public static final long ONE_MINUTE = 60 * ONE_SECOND; 318 319 320 public static final long ONE_HOUR = 60 * ONE_MINUTE; 321 322 323 public static final long ONE_DAY = 24 * ONE_HOUR; 324 325 326 public static final long ONE_WEEK = 7 * ONE_DAY; 327 328 329 public static final long ONE_YEAR = (long)(365.2425 * ONE_DAY); 333 334 335 public static final long ONE_CENTURY = 100 * ONE_YEAR; 336 337 338 } 339 340 341 | Popular Tags |