Searched refs:timeout (Results 201 - 225 of 271) sorted by relevance

1234567891011

/openjdk7/jdk/src/share/classes/com/sun/jndi/dns/
H A DDnsClient.java82 private int timeout; // initial timeout on UDP queries in ms field in class:DnsClient
98 * "timeout" is the initial timeout interval (in ms) for UDP queries,
101 public DnsClient(String[] servers, int timeout, int retries) argument
103 this.timeout = timeout;
185 // each server in order. If no answer, double the timeout
207 // given timeout, check if the response was enqueued
299 // A network timeout o
[all...]
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/
H A DEventSetImpl.java317 private long timeout; field in class:EventSetImpl.MonitorWaitEventImpl
322 this.timeout = evt.timeout;
333 public long timeout() { method in class:EventSetImpl.MonitorWaitEventImpl
334 return timeout;
H A DSocketTransportService.java119 void handshake(Socket s, long timeout) throws IOException { argument
120 s.setSoTimeout((int)timeout);
132 throw new IOException("handshake timeout");
146 // disable read timeout
185 * timeout.
194 throw new IllegalArgumentException("timeout is negative");
318 throw new IllegalArgumentException("timeout is negative");
340 // with a different accept timeout - that creates a same race
341 // condition between setting the timeout and calling accept.
350 throw new TransportTimeoutException("timeout waitin
[all...]
/openjdk7/jdk/test/java/awt/regtesthelpers/
H A DUtil.java211 * The method returns when the above conditions are fullfilled or when the timeout
215 * @param timeout the maximum time to wait in milliseconds
220 public static boolean waitForConditionEx(final AtomicBoolean condition, long timeout) argument
226 condition.wait(timeout);
227 if (System.currentTimeMillis() - startTime >= timeout ) {
239 public static boolean waitForCondition(final AtomicBoolean condition, long timeout) { argument
241 return waitForConditionEx(condition, timeout);
248 * The same as {@code waitForConditionEx(AtomicBoolean, long)} but without a timeout.
/openjdk7/jdk/src/share/transport/socket/
H A DsocketTransport.c139 handshake(int fd, jlong timeout) { argument
144 if (timeout > 0) {
152 if (timeout > 0) {
153 rv = dbgsysPoll(fd, JNI_TRUE, JNI_FALSE, (long)timeout);
155 setLastError(0, "timeout during handshake");
171 if (timeout > 0) {
332 * Use a default handshake timeout if not specified - this avoids an indefinite
341 * If there is an accept timeout then we put the socket in non-blocking
379 * is a handshake timeout set then it will go into non-blocking mode
394 * timeout the
[all...]
/openjdk7/jdk/src/solaris/native/java/net/
H A DPlainDatagramSocketImpl.c155 pdsi_timeoutID = (*env)->GetFieldID(env, cls, "timeout", "I");
550 jint timeout = (*env)->GetIntField(env, this, pdsi_timeoutID); local
568 if (timeout) {
569 int ret = NET_Timeout(fd, timeout);
638 jint timeout = (*env)->GetIntField(env, this, pdsi_timeoutID); local
670 if (timeout) {
671 int ret = NET_Timeout(fd, timeout);
815 jint timeout = (*env)->GetIntField(env, this, pdsi_timeoutID); local
896 if (timeout) {
906 if (timeout) {
[all...]
H A Dnet_util_md.c1621 * Wrapper for select/poll with timeout on a single file descriptor.
1627 * of the specified operation or the timeout expired.
1629 * It returns the time left from the timeout (possibly 0), or -1 if it expired.
1633 NET_Wait(JNIEnv *env, jint fd, jint flags, jint timeout) argument
1653 read_rv = NET_Poll(&pfd, 1, timeout);
1660 t.tv_sec = timeout / 1000;
1661 t.tv_usec = (timeout % 1000) * 1000;
1683 timeout -= (newTime - prevTime);
1684 if (timeout <= 0) {
1696 return timeout;
[all...]
/openjdk7/jdk/src/share/classes/java/net/
H A DSocksSocketImpl.java80 final int timeout)
87 superConnectServer(host, port, timeout);
99 int timeout) throws IOException {
100 super.connect(new InetSocketAddress(host, port), timeout);
319 * @param timeout the timeout value in milliseconds
327 protected void connect(SocketAddress endpoint, int timeout) throws IOException { argument
330 if (timeout == 0) {
333 long finish = System.currentTimeMillis() + timeout;
78 privilegedConnect(final String host, final int port, final int timeout) argument
98 superConnectServer(String host, int port, int timeout) argument
/openjdk7/jdk/src/share/classes/com/sun/jmx/remote/internal/
H A DServerNotifForwarder.java263 long timeout,
268 ", the timeout is " + timeout +
273 final long t = Math.min(connectionTimeout, timeout);
262 fetchNotifs(long startSequenceNumber, long timeout, int maxNotifications) argument
H A DClientNotifForwarder.java123 timeout = EnvHelp.getFetchTimeout(env);
146 long timeout)
589 timeout);
619 timeout. This allows us to skip sequence numbers for
865 private final long timeout; field in class:ClientNotifForwarder
144 fetchNotifs(long clientSequenceNumber, int maxNotifications, long timeout) argument
/openjdk7/hotspot/src/share/vm/runtime/
H A DadvancedThresholdPolicy.cpp109 bool AdvancedThresholdPolicy::is_stale(jlong t, jlong timeout, methodOop m) { argument
112 if (delta_t > timeout && delta_s > 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 DSynchronousQueue.java130 * 3. Support for cancellation via timeout and interrupts,
173 * @param timed if this operation should timeout
174 * @param nanos the timeout, in nanoseconds
176 * the operation failed due to timeout or interrupt --
407 * @param nanos timeout value
427 * timeouts. (So, on timeout, one last check for match is
734 * @param nanos timeout value
893 public boolean offer(E o, long timeout, TimeUnit unit) argument
896 if (transferer.transfer(o, true, unit.toNanos(timeout)) != null)
941 public E poll(long timeout, TimeUni argument
[all...]
H A DForkJoinTask.java301 * Blocks a non-worker-thread until completion or interruption or timeout.
950 * @param timeout the maximum time to wait
951 * @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);
/openjdk7/jdk/src/share/classes/sun/nio/ch/
H A DAbstractPollSelectorImpl.java83 protected abstract int doSelect(long timeout) throws IOException; argument
/openjdk7/jdk/src/share/classes/sun/rmi/transport/proxy/
H A DHttpSendSocket.java310 * Enable/disable SO_TIMEOUT with the specified timeout
313 public synchronized void setSoTimeout(int timeout) throws SocketException 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/hotspot/src/share/vm/services/
H A DmemSnapshot.hpp385 void wait(long timeout) { argument
388 locker.wait(true, timeout);
/openjdk7/jdk/src/windows/classes/sun/java2d/d3d/
H A DD3DScreenUpdateManager.java432 long timeout = d3dwSurfaces.size() > 0 ? 100 : 0;
436 try { runLock.wait(timeout); }
/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/test/java/nio/channels/AsynchronousSocketChannel/
H A DBasic.java742 static void testTimeout(final long timeout, final TimeUnit unit) throws Exception { argument
751 // this read should timeout if value is > 0
752 ch.read(dst, timeout, unit, null, new CompletionHandler<Integer,Void>() {
760 if (timeout > 0L) {
768 // after a timeout then further reading should throw unspecified runtime exception
776 throw new RuntimeException("RuntimeException expected after timeout.");
787 ch.write(genBuffer(), timeout, unit, ch,
791 ch.write(genBuffer(), timeout, unit, ch, this);
797 if (timeout > 0) {
805 // after a timeout the
[all...]
/openjdk7/jdk/src/share/classes/sun/security/ssl/
H A DSSLSocketImpl.java591 * Connects this socket to the server with a specified timeout
602 * @param timeout the timeout value to be used, 0 is no timeout
604 * @throws SocketTimeoutException if timeout expires before connecting
606 public void connect(SocketAddress endpoint, int timeout) argument
618 super.connect(endpoint, timeout);
759 "SO_LINGER timeout," +
1322 // start an ssl handshake that could be resumed from timeout exception
1331 * be reserved for exceptions like timeout; otherwis
2408 setSoTimeout(int timeout) argument
[all...]
/openjdk7/jdk/src/share/transport/shmem/
H A DshmemBase.c829 long timeout,
837 CHECK_ERROR(sysEventWait(NULL, transport->attachEvent, timeout));
867 doAttach(SharedMemoryTransport *transport, long timeout) argument
871 CHECK_ERROR(sysEventWait(NULL, transport->acceptEvent, timeout));
876 shmemBase_attach(const char *addressString, long timeout, SharedMemoryConnection **connectionPtr) argument
898 error = doAttach(transport, timeout);
828 shmemBase_accept(SharedMemoryTransport *transport, long timeout, SharedMemoryConnection **connectionPtr) argument
/openjdk7/jdk/src/solaris/native/sun/awt/
H A Dawt_MToolkit.c208 static int32_t def_poll_timeout = AWT_MAX_POLL_TIMEOUT; /* default value for timeout */
288 * Gets the best timeout for the next call to poll() or select().
289 * If timedOut is True, we assume that our previous timeout elapsed
291 * next timeout slightly.
296 uint32_t timeout = AWT_MAX_POLL_TIMEOUT; local
309 timeout = min(curPollTimeout, flushDiff);
311 timeout = curPollTimeout;
314 return timeout;
1704 a ScrollBar timeout from expiring, and restarting the
1988 uint32_t timeout local
2044 uint32_t timeout = awt_get_poll_timeout(False); local
[all...]
/openjdk7/jdk/src/solaris/native/sun/awt/splashscreen/
H A Dsplashscreen_sys.c558 int timeout = -1; local
571 timeout = splash->time + splash->frames[splash->currentFrame].delay
573 if (timeout < 0) {
574 timeout = 0;
578 rc = poll(pfd, 2, timeout);

Completed in 166 milliseconds

1234567891011