1 17 18 package org.sape.carbon.core.util.thread; 19 20 31 32 33 278 public interface Sync { 279 280 288 289 public void acquire() throws InterruptedException ; 290 291 314 315 public boolean attempt(long msecs) throws InterruptedException ; 316 317 328 329 public void release(); 330 331 332 public static final long ONE_SECOND = 1000; 333 334 335 public static final long ONE_MINUTE = 60 * ONE_SECOND; 336 337 338 public static final long ONE_HOUR = 60 * ONE_MINUTE; 339 340 341 public static final long ONE_DAY = 24 * ONE_HOUR; 342 343 344 public static final long ONE_WEEK = 7 * ONE_DAY; 345 346 347 public static final long ONE_YEAR = (long)(365.2425 * ONE_DAY); 351 352 353 public static final long ONE_CENTURY = 100 * ONE_YEAR; 354 355 356 } 357 358 359 | Popular Tags |