Searched defs:timeout (Results 126 - 150 of 227) sorted by relevance

12345678910

/openjdk7/jdk/src/windows/classes/java/net/
H A DDualStackPlainDatagramSocketImpl.java110 return socketReceiveOrPeekData(nativefd, p, timeout, connected, true /*peek*/);
121 socketReceiveOrPeekData(nativefd, p, timeout, connected, false /*receive*/);
282 int timeout, boolean connected, boolean peek) throws IOException;
281 socketReceiveOrPeekData(int fd, DatagramPacket packet, int timeout, boolean connected, boolean peek) argument
H A DDualStackPlainSocketImpl.java70 void socketConnect(InetAddress address, int port, int timeout) argument
78 if (timeout <= 0) {
85 waitForConnect(nativefd, timeout);
130 if (timeout <= 0) {
135 waitForNewConnection(nativefd, timeout);
180 if (opt == SO_TIMEOUT) { // timeout implemented through select.
274 static native void waitForConnect(int fd, int timeout) throws IOException; argument
284 static native void waitForNewConnection(int fd, int timeout) throws IOException; argument
H A DTwoStacksPlainSocketImpl.java221 native void socketConnect(InetAddress address, int port, int timeout) argument
/openjdk7/jdk/src/windows/native/java/net/
H A DDualStackPlainDatagramSocketImpl.c238 jint timeout, jboolean connected, jboolean peek) {
278 if (timeout) {
282 rv = NET_Timeout(fd, timeout);
318 } else if (timeout) {
319 /* Adjust timeout */
321 timeout -= (jint)(newTime - prevTime);
322 if (timeout <= 0) {
236 Java_java_net_DualStackPlainDatagramSocketImpl_socketReceiveOrPeekData(JNIEnv *env, jclass clazz, jint fd, jobject dpObj, jint timeout, jboolean connected, jboolean peek) argument
H A DDualStackPlainSocketImpl.c50 // implement read timeout with select.
141 (JNIEnv *env, jclass clazz, jint fd, jint timeout) {
151 t.tv_sec = timeout / 1000;
152 t.tv_usec = (timeout % 1000) * 1000;
155 * Wait for timeout, connection established or
309 (JNIEnv *env, jclass clazz, jint fd, jint timeout) {
312 rv = NET_Timeout(fd, timeout);
140 Java_java_net_DualStackPlainSocketImpl_waitForConnect(JNIEnv *env, jclass clazz, jint fd, jint timeout) argument
308 Java_java_net_DualStackPlainSocketImpl_waitForNewConnection(JNIEnv *env, jclass clazz, jint fd, jint timeout) argument
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...]
/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/windows/transport/shmem/
H A Dshmem_md.c197 INFINITE); /* infinite timeout */
259 sysEventWait(sys_process_t otherProcess, sys_event_t event, long timeout) argument
264 DWORD dwTimeout = (timeout == 0) ? INFINITE : (DWORD)timeout;
287 /* timeout */
/openjdk7/jdk/test/java/awt/Focus/NonFocusableWindowTest/
H A DNoEventsTest.java48 static void pause(int timeout) { argument
/openjdk7/jdk/src/share/demo/jvmti/hprof/
H A Dhprof_monitor.c375 monitor_wait_event(JNIEnv *env, jthread thread, jobject object, jlong timeout) argument
396 io_write_monitor_wait(string_get(pkey->sig_index), timeout,
/openjdk7/jdk/src/share/classes/sun/security/krb5/
H A DKdcComm.java66 * timeout requesting a ticket from KDC, in millisec, default 30 sec
139 int timeout = -1;
146 timeout = parsePositiveIntString(temp);
159 defaultKdcTimeout = timeout > 0 ? timeout : 30*1000; // 30 seconds
263 int timeout = getRealmSpecificValue(
270 if (timeout > tryLessTimeout) {
271 timeout = tryLessTimeout; // less time
313 + port + ", timeout="
314 + timeout
345 private int timeout; field in class:KdcComm.KdcCommunication
349 KdcCommunication(String kdc, int port, boolean useTCP, int timeout, int retries, byte[] obuf) argument
[all...]
/openjdk7/jdk/src/share/classes/sun/security/util/
H A DCache.java109 * Set the timeout(in seconds).
111 public abstract void setTimeout(int timeout); argument
131 public static Cache newSoftMemoryCache(int size, int timeout) { argument
132 return new MemoryCache(true, size, timeout);
155 public static Cache newHardMemoryCache(int size, int timeout) { argument
156 return new MemoryCache(false, size, timeout);
234 public void setTimeout(int timeout) { argument
424 public synchronized void setTimeout(int timeout) { argument
426 lifetime = timeout > 0 ? timeout * 100
[all...]
/openjdk7/jdk/test/java/util/concurrent/ThreadPoolExecutor/
H A DScheduledTickleService.java157 public V get(long timeout, TimeUnit unit) argument
159 return task.get(timeout, unit);
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/ftp/
H A DFtpURLConnection.java619 public void setConnectTimeout(int timeout) { argument
620 if (timeout < 0) {
623 connectTimeout = timeout;
632 public void setReadTimeout(int timeout) { argument
633 if (timeout < 0) {
636 readTimeout = timeout;
/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);
205 // no timeout scheduled as group is terminating
306 public final boolean awaitTermination(long timeout, TimeUnit unit) argument
309 return pool.executor().awaitTermination(timeout, unit);
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;
H A DSocketAdaptor.java60 private volatile int timeout = 0; field in class:SocketAdaptor
85 public void connect(SocketAddress remote, int timeout) throws IOException { argument
88 if (timeout < 0)
89 throw new IllegalArgumentException("connect: timeout can't be negative");
97 if (timeout == 0) {
102 // Implement timeout with a selector
111 long to = timeout;
202 if (timeout == 0)
205 // Implement timeout with a selector
216 long to = timeout;
364 setSoTimeout(int timeout) argument
[all...]
/openjdk7/jdk/src/solaris/classes/sun/nio/ch/
H A DEPollArrayWrapper.java255 int poll(long timeout) throws IOException { argument
257 updated = epollWait(pollArrayAddress, NUM_EPOLLEVENTS, timeout, epfd);
326 private native int epollWait(long pollAddress, int numfds, long timeout, argument
H A DSolarisEventPort.java248 static native int port_getn(int port, long address, int max, long timeout) argument
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/orbutil/threadpool/
H A DThreadPoolImpl.java86 // Inactivity timeout value for worker threads to exit and stop running
136 public ThreadPoolImpl(int minSize, int maxSize, long timeout, argument
141 inactivityTimeout = timeout;
/openjdk7/jdk/src/share/classes/java/sql/
H A DConnection.java1111 * @param timeout - The time in seconds to wait for the database operation
1113 * the timeout period expires before the operation
1115 * 0 indicates a timeout is not applied to the
1119 * @exception SQLException if the value supplied for <code>timeout</code>
1125 boolean isValid(int timeout) throws SQLException; argument
1419 * The {@code Statement.setQueryTimeout()} timeout value is independent of the
1420 * timeout value specified in {@code setNetworkTimeout}. If the query timeout
1421 * expires before the network timeout then the
1424 * are still usable. However if the network timeout expire
[all...]
/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 DPhaser.java94 * waiting thread is interrupted. Interruptible and timeout
96 * tasks wait interruptibly or with timeout do not change the
648 * interruption or timeout, you can arrange this with an analogous
757 * value or the given timeout to elapse, throwing {@code
765 * @param timeout how long to wait before giving up, in units of
768 * {@code timeout} parameter
776 long timeout, TimeUnit unit)
778 long nanos = unit.toNanos(timeout);
979 * nodes no longer waiting for advance due to timeout or
1022 * @param node if non-null, the wait node to track interrupt and timeout;
775 awaitAdvanceInterruptibly(int phase, long timeout, TimeUnit unit) argument
[all...]
/openjdk7/jdk/src/share/classes/java/util/concurrent/locks/
H A DReentrantReadWriteLock.java822 * <pre>if (lock.tryLock() || lock.tryLock(timeout, unit) ) { ... }
864 * @param timeout the time to wait for the read lock
865 * @param unit the time unit of the timeout argument
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) ) { ... }
1101 * @param timeout the time to wait for the write lock
1102 * @param unit the time unit of the timeout argument
1113 public boolean tryLock(long timeout, TimeUnit unit) argument
1115 return sync.tryAcquireNanos(1, unit.toNanos(timeout));
[all...]
/openjdk7/jdk/src/share/classes/javax/management/timer/
H A DTimer.java319 timer.schedule(alarmClock, alarmClock.timeout);
522 timer.schedule(alarmClock, alarmClock.timeout);
1063 * The associated TimerAlarmClock is updated by setting its timeout to the period value.
1108 timer.schedule(alarmClock, alarmClock.timeout);
1173 * the TimerAlarmClock has exceeded its timeout.
1199 // Update the notification and the TimerAlarmClock timeout.
1246 * The aim of this MBean is to set up an alarm which wakes up the timer every timeout (fixed-delay)
1253 long timeout = 10000; field in class:TimerAlarmClock
1262 public TimerAlarmClock(Timer listener, long timeout) { argument
1264 this.timeout
[all...]

Completed in 97 milliseconds

12345678910