Searched refs:timeout (Results 1 - 25 of 271) sorted by relevance

1234567891011

/openjdk7/jdk/src/share/classes/java/lang/
H A DObject.java320 * {@code timeout} is zero, however, then real time is not taken into
344 * obj.wait(timeout);
370 * @param timeout the maximum time to wait in milliseconds.
371 * @exception IllegalArgumentException if the value of timeout is
383 public final native void wait(long timeout) throws InterruptedException; argument
398 * 1000000*timeout+nanos</pre></blockquote>
411 * <li>The timeout period, specified by {@code timeout}
424 * obj.wait(timeout, nanos);
433 * @param timeout th
447 wait(long timeout, int nanos) argument
[all...]
/openjdk7/jdk/test/java/net/Socket/asyncClose/
H A DServerSocket_accept.java32 int timeout = 0; field in class:ServerSocket_accept
37 public ServerSocket_accept(int timeout) { argument
38 this.timeout = timeout;
43 if (timeout > 0) {
44 s += " (with timeout)";
H A DDatagramSocket_receive.java32 int timeout = 0; field in class:DatagramSocket_receive
37 public DatagramSocket_receive(int timeout) { argument
38 this.timeout = timeout;
43 if (timeout > 0) {
44 s += " (timeout specified)";
56 if (timeout > 0) {
57 s.setSoTimeout(timeout);
H A DSocket_getInputStream_read.java33 int timeout = 0; field in class:Socket_getInputStream_read
38 public Socket_getInputStream_read(int timeout) { argument
39 this.timeout = timeout;
44 if (timeout > 0) {
45 s += " (with timeout)";
55 if (timeout > 0) {
56 s.setSoTimeout(timeout);
/openjdk7/jdk/src/share/classes/sun/security/smartcardio/
H A DTerminalImpl.java99 private boolean waitForCard(boolean wantPresent, long timeout) throws CardException { argument
100 if (timeout < 0) {
101 throw new IllegalArgumentException("timeout must not be negative");
103 if (timeout == 0) {
104 timeout = TIMEOUT_INFINITE;
115 // no match, wait (until timeout expires)
116 long end = System.currentTimeMillis() + timeout;
117 while (wantPresent != present && timeout != 0) {
118 // set remaining timeout
119 if (timeout !
135 waitForCardPresent(long timeout) argument
139 waitForCardAbsent(long timeout) argument
[all...]
/openjdk7/jdk/src/share/classes/com/sun/jdi/event/
H A DMonitorWaitEvent.java64 public long timeout(); method in interface:MonitorWaitEvent
H A DEventQueue.java77 * @param timeout Time in milliseconds to wait for the next event
78 * @return the next {@link EventSet}, or null if there is a timeout.
84 * @throws IllegalArgumentException if the timeout argument
87 EventSet remove(long timeout) throws InterruptedException; argument
/openjdk7/jdk/src/solaris/classes/sun/awt/motif/
H A DAWTLockAccess.java32 static native void awtWait(long timeout); argument
/openjdk7/jdk/src/share/classes/javax/smartcardio/
H A DCardTerminal.java99 * Waits until a card is present in this terminal or the timeout
100 * expires. If the method returns due to an expired timeout, it returns
106 * @param timeout if positive, block for up to <code>timeout</code>
108 * @return false if the method returns due to an expired timeout,
111 * @throws IllegalArgumentException if timeout is negative
114 public abstract boolean waitForCardPresent(long timeout) throws CardException; argument
117 * Waits until a card is absent in this terminal or the timeout
118 * expires. If the method returns due to an expired timeout, it returns
124 * @param timeout i
132 waitForCardAbsent(long timeout) argument
[all...]
/openjdk7/langtools/test/tools/javac/
H A DObject1.java42 public final native void wait(long timeout) throws InterruptedException; argument
43 public native final void wait(long timeout, int nanos) throws InterruptedException; argument
H A DObject2.java42 public final native void wait(long timeout) throws InterruptedException; argument
43 public native final void wait(long timeout, int nanos) throws InterruptedException; argument
/openjdk7/jdk/src/share/classes/com/sun/tools/jdi/
H A DEventQueueImpl.java89 public EventSet remove(long timeout) throws InterruptedException { argument
90 if (timeout < 0) {
96 EventSetImpl fullEventSet = removeUnfiltered(timeout);
98 eventSet = null; // timeout
137 private TimerThread startTimerThread(long timeout) { argument
138 TimerThread thread = new TimerThread(timeout);
149 private EventSetImpl removeUnfiltered(long timeout) argument
168 * If a timeout was specified, create a thread to
169 * notify this one when a timeout
178 * a timeout fro
218 private long timeout; field in class:EventQueueImpl.TimerThread
220 TimerThread(long timeout) argument
[all...]
/openjdk7/corba/src/share/classes/com/sun/corba/se/pept/transport/
H A DSelector.java33 public void setTimeout(long timeout); argument
/openjdk7/jdk/src/share/demo/jvmti/waiters/
H A DMonitor.hpp59 void timeout();
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DBlockingDeque.java304 * @param timeout how long to wait before giving up, in units of
307 * <tt>timeout</tt> parameter
317 boolean offerFirst(E e, long timeout, TimeUnit unit) argument
326 * @param timeout how long to wait before giving up, in units of
329 * <tt>timeout</tt> parameter
339 boolean offerLast(E e, long timeout, TimeUnit unit) argument
365 * @param timeout how long to wait before giving up, in units of
368 * <tt>timeout</tt> parameter
373 E pollFirst(long timeout, TimeUnit unit) argument
381 * @param timeout ho
389 pollLast(long timeout, TimeUnit unit) argument
506 offer(E e, long timeout, TimeUnit unit) argument
557 poll(long timeout, TimeUnit unit) argument
[all...]
H A DBlockingQueue.java240 * @param timeout how long to wait before giving up, in units of
243 * <tt>timeout</tt> 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 * <tt>timeout</tt> parameter
277 E poll(long timeout, TimeUnit unit) argument
H A DCompletionService.java116 * @param timeout how long to wait before giving up, in units of
119 * <tt>timeout</tt> parameter
125 Future<V> poll(long timeout, TimeUnit unit) throws InterruptedException; argument
/openjdk7/jdk/src/solaris/native/sun/nio/ch/
H A DPollArrayWrapper.c42 ipoll(struct pollfd fds[], unsigned int nfds, int timeout) argument
45 int remaining = timeout;
74 jlong timeout)
81 if (timeout <= 0) { /* Indefinite or no wait */
82 RESTARTABLE (poll(a, numfds, timeout), err);
84 err = ipoll(a, numfds, timeout);
72 Java_sun_nio_ch_PollArrayWrapper_poll0(JNIEnv *env, jobject this, jlong address, jint numfds, jlong timeout) argument
/openjdk7/jdk/src/share/classes/com/sun/jmx/remote/internal/
H A DServerCommunicatorAdmin.java33 public ServerCommunicatorAdmin(long timeout) { argument
37 "with the timeout "+timeout);
40 this.timeout = timeout;
43 if (timeout < Long.MAX_VALUE) {
46 t.setName("JMX server connection timeout " + t.getId());
95 // tells the adminor to restart waiting with timeout
138 logtime("Admin: timeout=",timeout);
221 private long timeout; field in class:ServerCommunicatorAdmin
[all...]
/openjdk7/jdk/test/java/net/Socket/
H A DInheritTimeout.java28 * the timeout to be inherited by accepted connections
38 int timeout; field in class:InheritTimeout.Reaper
40 Reaper(Socket s, int timeout) { argument
42 this.timeout = timeout;
47 Thread.currentThread().sleep(timeout);
/openjdk7/jdk/test/com/sun/jdi/
H A DAcceptTimeout.java26 * @summary Test that each ListeningConnector that supports a "timeout" argument will
27 * timeout with TransportTimeoutException
42 Connector.IntegerArgument timeout = (Connector.IntegerArgument)cargs.get("timeout");
45 * If the Connector has a argument named "timeout" then we set the timeout to 1 second
48 if (timeout != null) {
50 timeout.setValue(1000);
/openjdk7/jdk/src/share/classes/sun/net/www/protocol/mailto/
H A DMailToURLConnection.java118 public void setConnectTimeout(int timeout) { argument
119 if (timeout < 0)
121 connectTimeout = timeout;
130 public void setReadTimeout(int timeout) { argument
131 if (timeout < 0)
133 readTimeout = timeout;
/openjdk7/jdk/src/share/classes/java/lang/ref/
H A DReferenceQueue.java107 * one becomes available or the given timeout period expires.
110 * timeout as if by invoking the {@link Object#wait(long)} method.
112 * @param timeout If positive, block for up to <code>timeout</code>
117 * timeout period, otherwise <code>null</code>
120 * If the value of the timeout argument is negative
123 * If the timeout wait is interrupted
125 public Reference<? extends T> remove(long timeout) argument
128 if (timeout < 0) {
129 throw new IllegalArgumentException("Negative timeout valu
[all...]
/openjdk7/jdk/src/share/classes/java/net/
H A DInetAddressImpl.java46 boolean isReachable(InetAddress addr, int timeout, NetworkInterface netif, argument
/openjdk7/jdk/src/share/classes/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

Completed in 80 milliseconds

1234567891011