Searched refs:timeout (Results 101 - 125 of 271) sorted by relevance

1234567891011

/openjdk7/jdk/src/windows/classes/java/net/
H A DPlainSocketImpl.java171 protected void connect(SocketAddress address, int timeout) throws IOException { argument
172 impl.connect(address, timeout);
183 synchronized void doConnect(InetAddress address, int port, int timeout) throws IOException { argument
184 impl.doConnect(address, port, timeout);
300 void socketConnect(InetAddress address, int port, int timeout) argument
302 impl.socketConnect(address, port, timeout);
/openjdk7/jdk/src/windows/native/java/net/
H A DInet4AddressImpl.c286 * Send a ICMP_ECHO_REQUEST packet every second until either the timeout
291 ping4(JNIEnv *env, jint fd, struct sockaddr_in* him, jint timeout, argument
339 * or the timeout expired.
372 tmout2 = timeout > 1000 ? 1000 : timeout;
393 timeout -= 1000;
395 } while (timeout > 0);
409 jint timeout,
479 return ping4(env, fd, &him, timeout, netif, ttl);
548 timeout
407 Java_java_net_Inet4AddressImpl_isReachable0(JNIEnv *env, jobject this, jbyteArray addrArray, jint timeout, jbyteArray ifArray, jint ttl) argument
[all...]
H A DTwoStacksPlainSocketImpl.c116 psi_timeoutID = (*env)->GetFieldID(env, cls, "timeout", "I");
191 jint timeout)
261 if (timeout <= 0) {
287 t.tv_sec = timeout / 1000;
288 t.tv_usec = (timeout % 1000) * 1000;
579 jint timeout = (*env)->GetIntField(env, this, psi_timeoutID); local
628 if (timeout) {
629 t.tv_sec = timeout/1000;
630 t.tv_usec = (timeout%1000)*1000;
669 if (timeout) {
189 Java_java_net_TwoStacksPlainSocketImpl_socketConnect(JNIEnv *env, jobject this, jobject iaObj, jint port, jint timeout) argument
888 jint timeout; local
[all...]
H A DInet6AddressImpl.c354 * Send a ICMP_ECHO_REQUEST packet every second until either the timeout
359 ping6(JNIEnv *env, jint fd, struct SOCKADDR_IN6* him, jint timeout, argument
410 * or the timeout expired.
459 tmout2 = timeout > 1000 ? 1000 : timeout;
486 timeout -= 1000;
488 } while (timeout > 0);
504 jint timeout,
532 timeout,
583 return ping6(env, fd, &him6, timeout, neti
501 Java_java_net_Inet6AddressImpl_isReachable0(JNIEnv *env, jobject this, jbyteArray addrArray, jint scope, jint timeout, jbyteArray ifArray, jint ttl, jint if_scope) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DDatagramSocketAdaptor.java49 private volatile int timeout = 0; field in class:DatagramSocketAdaptor
175 if (timeout == 0) {
179 // Implement timeout with a selector
190 long to = timeout;
266 public void setSoTimeout(int timeout) throws SocketException { argument
267 this.timeout = timeout;
271 return timeout;
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/transport/
H A DSelectorImpl.java66 private long timeout; field in class:SelectorImpl
81 timeout = 60000;
90 public void setTimeout(long timeout) argument
92 this.timeout = timeout;
97 return timeout;
267 if (timeout == 0 && orb.transportDebugFlag) {
273 n = selector.select(timeout);
287 if (timeout == 0 && orb.transportDebugFlag) {
313 if (timeout
[all...]
/openjdk7/jdk/src/windows/native/sun/nio/ch/
H A DWindowsSelectorImpl.c56 jintArray returnExceptFds, jlong timeout)
70 if (timeout == 0) {
72 } else if (timeout < 0) {
76 tv->tv_sec = (long)(timeout / 1000);
77 tv->tv_usec = (long)((timeout % 1000) * 1000);
53 Java_sun_nio_ch_WindowsSelectorImpl_00024SubSelector_poll0(JNIEnv *env, jobject this, jlong pollAddress, jint numfds, jintArray returnReadFds, jintArray returnWriteFds, jintArray returnExceptFds, jlong timeout) argument
/openjdk7/jdk/src/share/classes/java/util/concurrent/
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, uni
681 poll(long timeout, TimeUnit unit) argument
[all...]
H A DExecutors.java173 * properties but different details (for example, timeout parameters)
633 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);
650 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
659 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
H A DCyclicBarrier.java114 * point prematurely because of interruption, failure, or timeout, all
370 * <li>The specified timeout elapses; or
409 * @param timeout the time to wait for the barrier
410 * @param unit the time unit of the timeout parameter
416 * @throws TimeoutException if the specified timeout elapses
423 public int await(long timeout, TimeUnit unit) argument
427 return dowait(true, unit.toNanos(timeout));
434 * barrier due to interruption or timeout since
H A DAbstractExecutorService.java223 long timeout, TimeUnit unit)
225 return doInvokeAny(tasks, true, unit.toNanos(timeout));
259 long timeout, TimeUnit unit)
263 long nanos = unit.toNanos(timeout);
222 invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
258 invokeAll(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) argument
/openjdk7/jdk/src/solaris/native/sun/nio/ch/
H A DDevPollArrayWrapper.c156 jlong timeout, jint wfd)
164 a.dp_timeout = (int)timeout;
166 if (timeout <= 0) { /* Indefinite or no wait */
154 Java_sun_nio_ch_DevPollArrayWrapper_poll0(JNIEnv *env, jobject this, jlong address, jint numfds, jlong timeout, jint wfd) argument
/openjdk7/jdk/src/share/demo/jvmti/waiters/
H A DAgent.cpp193 jthread thread, jobject object, jlong timeout)
197 monitor_wait(jvmti, env, thread, object, timeout);
205 get_monitor(jvmti, env, object)->timeout();
192 monitor_wait(jvmtiEnv* jvmti, JNIEnv *env, jthread thread, jobject object, jlong timeout) argument
/openjdk7/jdk/test/javax/management/monitor/
H A DThreadPoolTest.java32 * @run main/othervm/timeout=300 ThreadPoolTest 1
33 * @run main/othervm/timeout=300 ThreadPoolTest 2
34 * @run main/othervm/timeout=300 ThreadPoolTest 3
35 * @run main/othervm/timeout=300 -Djmx.x.monitor.maximum.pool.size=5 ThreadPoolTest 1
36 * @run main/othervm/timeout=300 -Djmx.x.monitor.maximum.pool.size=5 ThreadPoolTest 2
37 * @run main/othervm/timeout=300 -Djmx.x.monitor.maximum.pool.size=5 ThreadPoolTest 3
38 * @run main/othervm/timeout=300 -Djmx.x.monitor.maximum.pool.size=-5 ThreadPoolTest 1
39 * @run main/othervm/timeout=300 -Djmx.x.monitor.maximum.pool.size=-5 ThreadPoolTest 2
40 * @run main/othervm/timeout=300 -Djmx.x.monitor.maximum.pool.size=-5 ThreadPoolTest 3
215 public boolean waiting(long timeout) { argument
[all...]
/openjdk7/jdk/test/javax/management/proxy/
H A DNotificationEmitterProxy.java52 public synchronized int waitfor(int max, long timeout) argument
55 while (count < max && timeout > 0) {
56 final long rest = timeout -
/openjdk7/jdk/test/sun/security/krb5/auto/
H A DMaxRetries.java27 * @run main/othervm/timeout=300 MaxRetries
84 * One round of test for max_retries and timeout.
85 * @param timeout the expected timeout
88 private static void test1(int timeout, int count) throws Exception { argument
89 String timeoutTag = "timeout=" + timeout;
97 System.out.println("----------------- TEST (" + timeout + "," +
103 throw new Exception("Wrong timeout value");
132 throw new Exception("Wrong timeout valu
[all...]
/openjdk7/jdk/src/windows/transport/socket/
H A Dsocket_md.c138 int dbgsysFinishConnect(int fd, long timeout) { argument
143 t.tv_sec = timeout / 1000;
144 t.tv_usec = (timeout % 1000) * 1000;
153 return SYS_ERR; /* timeout */
350 dbgsysPoll(int fd, jboolean rd, jboolean wr, long timeout) { argument
355 t.tv_sec = timeout / 1000;
356 t.tv_usec = (timeout % 1000) * 1000;
/openjdk7/hotspot/src/share/vm/runtime/
H A Dmutex.hpp186 long timeout = 0,
269 bool wait (bool no_safepoint_check, long timeout, bool as_suspend_equivalent) { argument
/openjdk7/jdk/test/com/sun/net/httpserver/bugs/
H A DB6401598.java127 static HttpURLConnection getHttpURLConnection(URL url, int timeout) throws IOException { argument
132 httpURLConnection.setReadTimeout(timeout);
/openjdk7/jdk/test/java/util/concurrent/ScheduledThreadPoolExecutor/
H A DDecorateTask.java70 public V get(long timeout, TimeUnit unit)
72 return task.get(timeout, unit);
/openjdk7/jdk/test/javax/swing/JToolTip/4846413/
H A Dbug4846413.java68 long timeout = System.currentTimeMillis() + 9000;
69 while (!isTooltipAdded && (System.currentTimeMillis() < timeout)) {
/openjdk7/jdk/src/solaris/native/java/net/
H A DInet6AddressImpl.c448 ping6(JNIEnv *env, jint fd, struct sockaddr_in6* him, jint timeout, argument
520 tmout2 = timeout > 1000 ? 1000 : timeout;
547 timeout -= 1000;
548 } while (timeout > 0);
563 jint timeout,
589 timeout,
632 return ping6(env, fd, &him6, timeout, netif, ttl);
699 timeout = NET_Wait(env, fd, NET_WAIT_CONNECT, timeout);
560 Java_java_net_Inet6AddressImpl_isReachable0(JNIEnv *env, jobject this, jbyteArray addrArray, jint scope, jint timeout, jbyteArray ifArray, jint ttl, jint if_scope) argument
[all...]
/openjdk7/jdk/src/share/classes/java/net/
H A DSocketImpl.java103 * A timeout of zero is interpreted as an infinite timeout. The connection
107 * @param timeout the timeout value, in milliseconds, or zero for no timeout.
112 protected abstract void connect(SocketAddress address, int timeout) throws IOException; argument
/openjdk7/jdk/src/share/classes/com/sun/net/ssl/internal/www/protocol/https/
H A DHttpsURLConnectionOldImpl.java480 public void setConnectTimeout(int timeout) { argument
481 delegate.setConnectTimeout(timeout);
488 public void setReadTimeout(int timeout) { argument
489 delegate.setReadTimeout(timeout);
/openjdk7/jdk/src/solaris/transport/socket/
H A Dsocket_md.c62 dbgsysFinishConnect(int fd, long timeout) { argument
63 int rv = dbgsysPoll(fd, 0, 1, timeout);
245 dbgsysPoll(int fd, jboolean rd, jboolean wr, long timeout) { argument
259 rv = poll(&fds[0], 1, timeout);

Completed in 112 milliseconds

1234567891011