Searched defs:timeout (Results 1 - 25 of 92) sorted by relevance

1234

/libcore/ojluni/src/main/java/java/nio/file/
H A DWatchService.java145 * @param timeout
148 * a {@code TimeUnit} determining how to interpret the timeout
159 WatchKey poll(long timeout, TimeUnit unit) argument
/libcore/ojluni/src/main/java/java/lang/
H A DProcess.java169 * terminated and the timeout value is less than, or equal to, zero, then
177 * @param timeout the maximum time to wait
178 * @param unit the time unit of the {@code timeout} argument
186 public boolean waitFor(long timeout, TimeUnit unit) argument
190 long rem = unit.toNanos(timeout);
201 rem = unit.toNanos(timeout) - (System.nanoTime() - startTime);
/libcore/ojluni/src/main/java/java/net/
H A DInetAddressImpl.java76 boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif, argument
H A DInet6AddressImpl.java85 private native boolean isReachable0(byte[] addr, int scope, int timeout, byte[] inf, int ttl, int if_scope) throws IOException;
175 public boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif, int ttl) throws IOException { argument
206 return isReachable0(addr.getAddress(), scope, timeout, ifaddr, ttl, netif_scope);
209 if (icmpEcho(addr, timeout, sourceAddr, ttl)) {
214 return tcpEcho(addr, timeout, sourceAddr, ttl);
218 private boolean tcpEcho(InetAddress addr, int timeout, InetAddress sourceAddr, int ttl) argument
229 IoBridge.connect(fd, addr, 7 /* Echo-protocol port */, timeout);
242 protected boolean icmpEcho(InetAddress addr, int timeout, InetAddress sourceAddr, int ttl) argument
261 // ICMP is unreliable, try sending requests every second until timeout.
262 for (int to = timeout, se
[all...]
H A DSocketInputStream.java92 * @param timeout the read timeout in ms
99 int timeout)
110 * @param timeout the read timeout in ms
117 int timeout)
119 return socketRead0(fd, b, off, len, timeout);
147 int read(byte b[], int off, int length, int timeout) throws IOException { argument
176 n = socketRead(fd, b, off, length, timeout);
194 n = socketRead(fd, b, off, length, timeout);
97 socketRead0(FileDescriptor fd, byte b[], int off, int len, int timeout) argument
115 socketRead(FileDescriptor fd, byte b[], int off, int len, int timeout) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/channels/
H A DSelector.java306 * thread is interrupted, or the given timeout period expires, whichever
310 * timeout as if by invoking the {@link Object#wait(long)} method. </p>
312 * @param timeout If positive, block for up to <tt>timeout</tt>
327 * If the value of the timeout argument is negative
329 public abstract int select(long timeout) argument
H A DAsynchronousChannelGroup.java327 * <p> This method blocks until the group has terminated, or the timeout
330 * @param timeout
333 * The time unit of the timeout argument
336 * timeout elapsed before termination
341 public abstract boolean awaitTermination(long timeout, TimeUnit unit) argument
/libcore/ojluni/src/main/java/java/util/concurrent/
H A DCompletionService.java114 * @param timeout how long to wait before giving up, in units of
117 * {@code timeout} parameter
123 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; argument
H A DFuture.java158 * @param timeout the maximum time to wait
159 * @param unit the time unit of the timeout argument
168 V get(long timeout, TimeUnit unit) argument
H A DTransferQueue.java109 * before the timeout elapses.
119 * @param timeout how long to wait before giving up, in units of
122 * {@code timeout} parameter
134 boolean tryTransfer(E e, long timeout, TimeUnit unit) argument
H A DBlockingQueue.java240 * @param timeout how long to wait before giving up, in units of
243 * {@code timeout} parameter
253 boolean offer(E e, long timeout, TimeUnit unit) argument
269 * @param timeout how long to wait before giving up, in units of
272 * {@code timeout} parameter
277 E poll(long timeout, TimeUnit unit) argument
H A DCountDownLatch.java269 * @param timeout the maximum time to wait
270 * @param unit the time unit of the {@code timeout} argument
276 public boolean await(long timeout, TimeUnit unit) argument
278 return sync.tryAcquireSharedNanos(1, unit.toNanos(timeout));
H A DExecutorCompletionService.java202 public Future<V> poll(long timeout, TimeUnit unit) argument
204 return completionQueue.poll(timeout, unit);
H A DExecutorService.java191 * request, or the timeout occurs, or the current thread is
194 * @param timeout the maximum time to wait
195 * @param unit the time unit of the timeout argument
197 * {@code false} if the timeout elapsed before termination
200 boolean awaitTermination(long timeout, TimeUnit unit) argument
283 * when all complete or the timeout expires, whichever happens first.
293 * @param timeout the maximum time to wait
294 * @param unit the time unit of the timeout argument
309 long timeout, TimeUnit unit)
337 * an exception), if any do before the given timeout elapse
308 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
357 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
[all...]
H A DAbstractExecutorService.java228 long timeout, TimeUnit unit)
230 return doInvokeAny(tasks, true, unit.toNanos(timeout));
260 long timeout, TimeUnit unit)
264 final long nanos = unit.toNanos(timeout);
227 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
259 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
H A DCyclicBarrier.java122 * point prematurely because of interruption, failure, or timeout, all
378 * <li>The specified timeout elapses; or
417 * @param timeout the time to wait for the barrier
418 * @param unit the time unit of the timeout parameter
424 * @throws TimeoutException if the specified timeout elapses.
432 public int await(long timeout, TimeUnit unit) argument
436 return dowait(true, unit.toNanos(timeout));
443 * barrier due to interruption or timeout since
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DCompletedFuture.java74 public V get(long timeout, TimeUnit unit) throws ExecutionException { argument
H A DPollSelectorImpl.java65 protected int doSelect(long timeout) argument
73 pollWrapper.poll(totalChannels, 0, timeout);
H A DAbstractPollSelectorImpl.java83 protected abstract int doSelect(long timeout) throws IOException; argument
H A DFileDescriptorHolderSocketImpl.java72 protected void connect(SocketAddress address, int timeout) throws IOException { argument
H A DPollArrayWrapper.java114 int poll(int numfds, int offset, long timeout) { argument
116 numfds, timeout);
123 private native int poll0(long pollAddress, int numfds, long timeout); argument
/libcore/ojluni/src/main/native/
H A DSocketInputStream.c56 jint off, jint len, jint timeout)
95 if (timeout) {
96 nread = NET_Timeout(fd, timeout);
54 SocketInputStream_socketRead0(JNIEnv *env, jobject this, jobject fdObj, jbyteArray data, jint off, jint len, jint timeout) argument
/libcore/luni/src/main/java/java/lang/ref/
H A DFinalizerReference.java87 public static void finalizeAllEnqueued(long timeout) throws InterruptedException { argument
96 sentinel.awaitFinalization(timeout);
155 synchronized void awaitFinalization(long timeout) throws InterruptedException { argument
157 final long endTime = startTime + timeout;
159 // 0 signifies no timeout.
160 if (timeout != 0) {
/libcore/luni/src/test/java/libcore/java/net/
H A DServerSocketConcurrentCloseTest.java203 socket.connect(socketAddress, /* timeout (msec) */ 10);
211 public boolean awaitStart(long timeout, TimeUnit timeUnit) throws InterruptedException { argument
212 return startLatch.await(timeout, timeUnit);
248 public boolean awaitStart(long timeout, TimeUnit timeUnit) throws InterruptedException { argument
249 return startLatch.await(timeout, timeUnit);
252 public boolean awaitShutdown(long timeout, TimeUnit timeUnit) throws InterruptedException { argument
253 return shutdownLatch.await(timeout, timeUnit);
/libcore/ojluni/src/main/java/java/lang/ref/
H A DReferenceQueue.java159 * one becomes available or the given timeout period expires.
162 * timeout as if by invoking the {@link Object#wait(long)} method.
164 * @param timeout If positive, block for up to <code>timeout</code>
169 * timeout period, otherwise <code>null</code>
172 * If the value of the timeout argument is negative
175 * If the timeout wait is interrupted
177 public Reference<? extends T> remove(long timeout) argument
180 if (timeout < 0) {
181 throw new IllegalArgumentException("Negative timeout valu
[all...]

Completed in 393 milliseconds

1234