Searched defs:unit (Results 51 - 75 of 89) sorted by relevance

1234

/openjdk7/jdk/src/share/classes/javax/swing/
H A DSwingWorker.java610 public final T get(long timeout, TimeUnit unit) throws InterruptedException, argument
612 return future.get(timeout, unit);
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DArrayBlockingQueue.java339 public boolean offer(E e, long timeout, TimeUnit unit) argument
343 long nanos = unit.toNanos(timeout);
381 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
382 long nanos = unit.toNanos(timeout);
H A DExchanger.java666 * @param unit the time unit of the <tt>timeout</tt> argument
673 public V exchange(V x, long timeout, TimeUnit unit) argument
677 true, unit.toNanos(timeout));
H A DExecutors.java633 public boolean awaitTermination(long timeout, TimeUnit unit) argument
635 return e.awaitTermination(timeout, unit);
651 long timeout, TimeUnit unit)
653 return e.invokeAll(tasks, timeout, unit);
660 long timeout, TimeUnit unit)
662 return e.invokeAny(tasks, timeout, unit);
688 public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit) { argument
689 return e.schedule(command, delay, unit);
691 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { argument
692 return e.schedule(callable, delay, unit);
650 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
659 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
694 scheduleAtFixedRate(Runnable command, long initialDelay, long period, TimeUnit unit) argument
697 scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit) argument
[all...]
H A DFutureTask.java194 public V get(long timeout, TimeUnit unit) argument
196 if (unit == null)
200 (s = awaitDone(true, unit.toNanos(timeout))) <= COMPLETING)
H A DLinkedBlockingQueue.java371 public boolean offer(E e, long timeout, TimeUnit unit) argument
375 long nanos = unit.toNanos(timeout);
456 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
459 long nanos = unit.toNanos(timeout);
H A DPriorityBlockingQueue.java511 * @param unit This parameter is ignored as the method never blocks
519 public boolean offer(E e, long timeout, TimeUnit unit) { argument
546 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
547 long nanos = unit.toNanos(timeout);
H A DLinkedBlockingDeque.java403 public boolean offerFirst(E e, long timeout, TimeUnit unit) argument
407 long nanos = unit.toNanos(timeout);
426 public boolean offerLast(E e, long timeout, TimeUnit unit) argument
430 long nanos = unit.toNanos(timeout);
509 public E pollFirst(long timeout, TimeUnit unit) argument
511 long nanos = unit.toNanos(timeout);
527 public E pollLast(long timeout, TimeUnit unit) argument
529 long nanos = unit.toNanos(timeout);
654 public boolean offer(E e, long timeout, TimeUnit unit) argument
656 return offerLast(e, timeout, unit);
681 poll(long timeout, TimeUnit unit) argument
[all...]
H A DPhaser.java766 * {@code unit}
767 * @param unit a {@code TimeUnit} determining how to interpret the
776 long timeout, TimeUnit unit)
778 long nanos = unit.toNanos(timeout);
775 awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit) argument
H A DForkJoinTask.java951 * @param unit the time unit of the timeout argument
960 public final V get(long timeout, TimeUnit unit) argument
965 long nanos = unit.toNanos(timeout);
982 long millis = unit.toMillis(timeout);
H A DLinkedTransferQueue.java1051 public boolean offer(E e, long timeout, TimeUnit unit) { argument
1127 public boolean tryTransfer(E e, long timeout, TimeUnit unit) argument
1129 if (xfer(e, true, TIMED, unit.toNanos(timeout)) == null)
1144 public E poll(long timeout, TimeUnit unit) throws InterruptedException { argument
1145 E e = xfer(null, false, TIMED, unit.toNanos(timeout));
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/
H A DReentrantLock.java386 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... }
434 * @param unit the time unit of the timeout argument
440 * @throws NullPointerException if the time unit is null
443 public boolean tryLock(long timeout, TimeUnit unit) argument
445 return sync.tryAcquireNanos(1, unit.toNanos(timeout));
H A DReentrantReadWriteLock.java822 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... }
865 * @param unit the time unit of the timeout argument
868 * @throws NullPointerException if the time unit is null
871 public boolean tryLock(long timeout, TimeUnit unit) argument
873 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout));
1052 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... }
1102 * @param unit the time unit of the timeout argument
1110 * @throws NullPointerException if the time unit i
1113 tryLock(long timeout, TimeUnit unit) argument
[all...]
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/org/glassfish/external/statistics/impl/
H A DBoundedRangeStatisticImpl.java70 String unit, String desc, long startTime,
72 super(name, unit, desc, startTime, sampleTime);
68 BoundedRangeStatisticImpl(long curVal, long highMark, long lowMark, long upper, long lower, String name, String unit, String desc, long startTime, long sampleTime) argument
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/api/
H A DJavacTaskImpl.java241 for (JCCompilationUnit unit: units) {
242 JavaFileObject file = unit.getSourceFile();
244 notYetEntered.put(file, unit);
292 JCCompilationUnit unit = notYetEntered.remove(file);
293 if (unit != null) {
296 roots.append(unit);
325 for (JCCompilationUnit unit : units) {
326 for (JCTree node : unit.defs) {
391 JCCompilationUnit unit = (JCCompilationUnit) env.tree;
392 if (unit
468 pathFor(CompilationUnitTree unit, Tree node) argument
[all...]
H A DJavacTrees.java184 public TreePath getPath(CompilationUnitTree unit, Tree node) { argument
185 return TreePath.getPath(unit, node);
278 JCCompilationUnit unit = (JCCompilationUnit) path.getCompilationUnit();
279 Copier copier = new Copier(treeMaker.forToplevel(unit));
388 * tree within the provided compilation unit
393 * @param root the compilation unit that contains tree
/openjdk7/jdk/src/share/demo/java2d/J2DBench/src/j2dbench/
H A DResult.java153 public static boolean isTimeUnit(int unit) { argument
154 return (unit >= TIME_SECONDS && unit <= TIME_AUTO);
157 public static boolean isWorkUnit(int unit) { argument
158 return (unit >= WORK_OPS && unit <= (WORK_AUTO | WORK_OPS));
167 int unit = parseUnit(opt);
168 if (isTimeUnit(unit)) {
169 timeScale = unit;
170 } else if (isWorkUnit(unit)) {
[all...]
/openjdk7/jdk/test/java/util/concurrent/ThreadPoolExecutor/
H A DScheduledTickleService.java96 TimeUnit unit) {
106 interval, unit);
149 public long getDelay(TimeUnit unit) { return task.getDelay(unit); } argument
157 public V get(long timeout, TimeUnit unit) argument
159 return task.get(timeout, unit);
95 setUpdateInterval(long interval, TimeUnit unit) argument
/openjdk7/jdk/src/share/classes/sun/management/counter/perf/
H A DPerfDataEntry.java63 private Units unit; field in class:PerfDataEntry
107 unit = Units.toUnits(b.get());
143 if (unit == Units.INVALID) {
183 return unit;
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DAsynchronousChannelGroupImpl.java200 final Future<?> schedule(Runnable task, long timeout, TimeUnit unit) { argument
202 return timeoutExecutor.schedule(task, timeout, unit);
306 public final boolean awaitTermination(long timeout, TimeUnit unit) argument
309 return pool.executor().awaitTermination(timeout, unit);
H A DAsynchronousSocketChannelImpl.java218 TimeUnit unit,
227 TimeUnit unit,
275 return implRead(isScatteringRead, dst, dsts, timeout, unit, att, handler);
288 TimeUnit unit,
296 read(false, dst, null, timeout, unit, attachment, handler);
304 TimeUnit unit,
317 read(true, null, bufs, timeout, unit, attachment, handler);
327 TimeUnit unit,
336 TimeUnit unit,
381 return implWrite(isGatheringWrite, src, srcs, timeout, unit, at
214 implRead(boolean isScatteringRead, ByteBuffer dst, ByteBuffer[] dsts, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument
223 read(boolean isScatteringRead, ByteBuffer dst, ByteBuffer[] dsts, long timeout, TimeUnit unit, A att, CompletionHandler<V,? super A> handler) argument
286 read(ByteBuffer dst, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler) argument
300 read(ByteBuffer[] dsts, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument
323 implWrite(boolean isGatheringWrite, ByteBuffer src, ByteBuffer[] srcs, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument
332 write(boolean isGatheringWrite, ByteBuffer src, ByteBuffer[] srcs, long timeout, TimeUnit unit, A att, CompletionHandler<V,? super A> handler) argument
390 write(ByteBuffer src, long timeout, TimeUnit unit, A attachment, CompletionHandler<Integer,? super A> handler) argument
402 write(ByteBuffer[] srcs, int offset, int length, long timeout, TimeUnit unit, A attachment, CompletionHandler<Long,? super A> handler) argument
[all...]
/openjdk7/hotspot/src/share/vm/services/
H A DmemReporter.cpp299 const char* unit = memory_unit(_scale); local
301 total_reserved, unit, total_committed, unit);
322 const char* unit = memory_unit(_scale); local
332 MemBaseline::type2name(type), total_reserved, unit,
333 total_committed, unit);
340 _thread_stack_reserved, unit, _thread_stack_committed, unit);
345 _output->print_cr("%27s (malloc=%d%s, #%d)", " ", malloc_amt, unit,
348 _output->print_cr("%27s (malloc=%d%s)", " ", malloc_amt, unit);
377 const char* unit = memory_unit(_scale); local
389 const char* unit = memory_unit(_scale); local
416 const char* unit = memory_unit(_scale); local
436 const char* unit = memory_unit(_scale); local
456 const char* unit = memory_unit(_scale); local
477 const char* unit = memory_unit(_scale); local
581 const char* unit = memory_unit(_scale); local
612 const char* unit = memory_unit(_scale); local
[all...]
/openjdk7/jdk/src/windows/classes/sun/nio/ch/
H A DWindowsAsynchronousSocketChannelImpl.java606 TimeUnit unit,
629 }, timeout, unit);
863 TimeUnit unit,
886 }, timeout, unit);
602 implRead(boolean isScatteringRead, ByteBuffer dst, ByteBuffer[] dsts, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument
859 implWrite(boolean gatheringWrite, ByteBuffer src, ByteBuffer[] srcs, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/tree/
H A DTreeInfo.java515 public static Env<AttrContext> scopeFor(JCTree node, JCCompilationUnit unit) { argument
516 return scopeFor(pathFor(node, unit));
524 public static List<JCTree> pathFor(final JCTree node, final JCCompilationUnit unit) { argument
545 new PathFinder().scan(unit);
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DUnixAsynchronousSocketChannelImpl.java475 TimeUnit unit,
529 this.readTimer = port.schedule(readTimeoutTask, timeout, unit);
670 TimeUnit unit,
712 this.writeTimer = port.schedule(writeTimeoutTask, timeout, unit);
471 implRead(boolean isScatteringRead, ByteBuffer dst, ByteBuffer[] dsts, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument
666 implWrite(boolean isGatheringWrite, ByteBuffer src, ByteBuffer[] srcs, long timeout, TimeUnit unit, A attachment, CompletionHandler<V,? super A> handler) argument

Completed in 98 milliseconds

1234