jretlang 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +3 -0
- data/Rakefile +33 -0
- data/VERSION +1 -0
- data/changelog +29 -0
- data/jretlang.gemspec +154 -0
- data/lib/jretlang/channel.rb +35 -0
- data/lib/jretlang/fiber.rb +15 -0
- data/lib/jretlang/latch.rb +10 -0
- data/lib/jretlang.rb +22 -0
- data/readme +1 -0
- data/test/unit/test_examples.rb +142 -0
- data/test/unit/unit_test_helper.rb +6 -0
- data/vendor/jetlang-0.2.0/jetlang-0.2.0-sources.jar +0 -0
- data/vendor/jetlang-0.2.0/site/apidocs/allclasses-frame.html +106 -0
- data/vendor/jetlang-0.2.0/site/apidocs/allclasses-noframe.html +106 -0
- data/vendor/jetlang-0.2.0/site/apidocs/constant-values.html +147 -0
- data/vendor/jetlang-0.2.0/site/apidocs/deprecated-list.html +147 -0
- data/vendor/jetlang-0.2.0/site/apidocs/help-doc.html +224 -0
- data/vendor/jetlang-0.2.0/site/apidocs/index-all.html +677 -0
- data/vendor/jetlang-0.2.0/site/apidocs/index.html +40 -0
- data/vendor/jetlang-0.2.0/site/apidocs/options +19 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/AsyncRequest.html +376 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/BaseSubscription.html +332 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/BatchSubscriber.html +303 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/Channel.html +207 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/ChannelSubscription.html +295 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/Converter.html +211 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/KeyedBatchSubscriber.html +307 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/LastSubscriber.html +304 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/MemoryChannel.html +391 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/MemoryRequestChannel.html +319 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/Publisher.html +219 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/Request.html +251 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/RequestChannel.html +264 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/Session.html +173 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/SessionClosed.html +230 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/Subscribable.html +230 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/Subscriber.html +243 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/SubscriberList.html +334 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/AsyncRequest.html +191 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/BaseSubscription.html +205 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/BatchSubscriber.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/Channel.html +181 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/ChannelSubscription.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/Converter.html +194 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/KeyedBatchSubscriber.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/LastSubscriber.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/MemoryChannel.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/MemoryRequestChannel.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/Publisher.html +197 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/Request.html +211 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/RequestChannel.html +240 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/Session.html +189 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/SessionClosed.html +193 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/Subscribable.html +237 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/Subscriber.html +197 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/class-use/SubscriberList.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/package-frame.html +76 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/package-summary.html +245 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/package-tree.html +172 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/channels/package-use.html +237 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/BatchExecutor.html +219 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/BatchExecutorImpl.html +267 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/Callback.html +217 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/Disposable.html +219 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/DisposingExecutor.html +286 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/EventBuffer.html +352 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/EventReader.html +234 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/Filter.html +216 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/RunnableBlockingQueue.html +337 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/RunnableExecutor.html +225 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/RunnableExecutorImpl.html +404 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/Scheduler.html +280 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/SchedulerImpl.html +354 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/SynchronousDisposingExecutor.html +391 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/SynchronousExecutor.html +307 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/BatchExecutor.html +224 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/BatchExecutorImpl.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/Callback.html +499 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/Disposable.html +669 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/DisposingExecutor.html +440 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/EventBuffer.html +197 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/EventReader.html +206 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/Filter.html +219 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/RunnableBlockingQueue.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/RunnableExecutor.html +218 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/RunnableExecutorImpl.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/Scheduler.html +235 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/SchedulerImpl.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/SynchronousDisposingExecutor.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/class-use/SynchronousExecutor.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/package-frame.html +70 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/package-summary.html +226 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/package-tree.html +176 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/core/package-use.html +289 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/Fiber.html +266 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/FiberStub.ScheduledEvent.html +419 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/FiberStub.html +599 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/PoolFiberFactory.html +321 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/ThreadFiber.html +525 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/class-use/Fiber.html +346 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/class-use/FiberStub.ScheduledEvent.html +181 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/class-use/FiberStub.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/class-use/PoolFiberFactory.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/class-use/ThreadFiber.html +145 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/package-frame.html +50 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/package-summary.html +185 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/package-tree.html +172 -0
- data/vendor/jetlang-0.2.0/site/apidocs/org/jetlang/fibers/package-use.html +198 -0
- data/vendor/jetlang-0.2.0/site/apidocs/overview-frame.html +47 -0
- data/vendor/jetlang-0.2.0/site/apidocs/overview-summary.html +165 -0
- data/vendor/jetlang-0.2.0/site/apidocs/overview-tree.html +198 -0
- data/vendor/jetlang-0.2.0/site/apidocs/package-list +3 -0
- data/vendor/jetlang-0.2.0/site/apidocs/packages +3 -0
- data/vendor/jetlang-0.2.0/site/apidocs/resources/inherit.gif +0 -0
- data/vendor/jetlang-0.2.0/site/apidocs/stylesheet.css +29 -0
- data/vendor/jetlang-0.2.0.jar +0 -0
- metadata +172 -0
|
@@ -0,0 +1,280 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2
|
+
<!--NewPage-->
|
|
3
|
+
<HTML>
|
|
4
|
+
<HEAD>
|
|
5
|
+
<!-- Generated by javadoc (build 1.6.0_15) on Sat Sep 05 11:49:22 CDT 2009 -->
|
|
6
|
+
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
7
|
+
<TITLE>
|
|
8
|
+
Scheduler (Jetlang 0.2.0 API)
|
|
9
|
+
</TITLE>
|
|
10
|
+
|
|
11
|
+
<META NAME="date" CONTENT="2009-09-05">
|
|
12
|
+
|
|
13
|
+
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
|
14
|
+
|
|
15
|
+
<SCRIPT type="text/javascript">
|
|
16
|
+
function windowTitle()
|
|
17
|
+
{
|
|
18
|
+
if (location.href.indexOf('is-external=true') == -1) {
|
|
19
|
+
parent.document.title="Scheduler (Jetlang 0.2.0 API)";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</SCRIPT>
|
|
23
|
+
<NOSCRIPT>
|
|
24
|
+
</NOSCRIPT>
|
|
25
|
+
|
|
26
|
+
</HEAD>
|
|
27
|
+
|
|
28
|
+
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
29
|
+
<HR>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
33
|
+
<A NAME="navbar_top"><!-- --></A>
|
|
34
|
+
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
35
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
36
|
+
<TR>
|
|
37
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
38
|
+
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
39
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
40
|
+
<TR ALIGN="center" VALIGN="top">
|
|
41
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
42
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
43
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
44
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Scheduler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
45
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
46
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
47
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
48
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
49
|
+
</TR>
|
|
50
|
+
</TABLE>
|
|
51
|
+
</TD>
|
|
52
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
53
|
+
</EM>
|
|
54
|
+
</TD>
|
|
55
|
+
</TR>
|
|
56
|
+
|
|
57
|
+
<TR>
|
|
58
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
59
|
+
<A HREF="../../../org/jetlang/core/RunnableExecutorImpl.html" title="class in org.jetlang.core"><B>PREV CLASS</B></A>
|
|
60
|
+
<A HREF="../../../org/jetlang/core/SchedulerImpl.html" title="class in org.jetlang.core"><B>NEXT CLASS</B></A></FONT></TD>
|
|
61
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
62
|
+
<A HREF="../../../index.html?org/jetlang/core/Scheduler.html" target="_top"><B>FRAMES</B></A>
|
|
63
|
+
<A HREF="Scheduler.html" target="_top"><B>NO FRAMES</B></A>
|
|
64
|
+
<SCRIPT type="text/javascript">
|
|
65
|
+
<!--
|
|
66
|
+
if(window==top) {
|
|
67
|
+
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
68
|
+
}
|
|
69
|
+
//-->
|
|
70
|
+
</SCRIPT>
|
|
71
|
+
<NOSCRIPT>
|
|
72
|
+
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
73
|
+
</NOSCRIPT>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
</FONT></TD>
|
|
77
|
+
</TR>
|
|
78
|
+
<TR>
|
|
79
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
80
|
+
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
81
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
82
|
+
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
83
|
+
</TR>
|
|
84
|
+
</TABLE>
|
|
85
|
+
<A NAME="skip-navbar_top"></A>
|
|
86
|
+
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
87
|
+
|
|
88
|
+
<HR>
|
|
89
|
+
<!-- ======== START OF CLASS DATA ======== -->
|
|
90
|
+
<H2>
|
|
91
|
+
<FONT SIZE="-1">
|
|
92
|
+
org.jetlang.core</FONT>
|
|
93
|
+
<BR>
|
|
94
|
+
Interface Scheduler</H2>
|
|
95
|
+
<DL>
|
|
96
|
+
<DT><B>All Superinterfaces:</B> <DD><A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A></DD>
|
|
97
|
+
</DL>
|
|
98
|
+
<DL>
|
|
99
|
+
<DT><B>All Known Subinterfaces:</B> <DD><A HREF="../../../org/jetlang/fibers/Fiber.html" title="interface in org.jetlang.fibers">Fiber</A></DD>
|
|
100
|
+
</DL>
|
|
101
|
+
<DL>
|
|
102
|
+
<DT><B>All Known Implementing Classes:</B> <DD><A HREF="../../../org/jetlang/fibers/FiberStub.html" title="class in org.jetlang.fibers">FiberStub</A>, <A HREF="../../../org/jetlang/core/SchedulerImpl.html" title="class in org.jetlang.core">SchedulerImpl</A>, <A HREF="../../../org/jetlang/fibers/ThreadFiber.html" title="class in org.jetlang.fibers">ThreadFiber</A></DD>
|
|
103
|
+
</DL>
|
|
104
|
+
<HR>
|
|
105
|
+
<DL>
|
|
106
|
+
<DT><PRE>public interface <B>Scheduler</B><DT>extends <A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A></DL>
|
|
107
|
+
</PRE>
|
|
108
|
+
|
|
109
|
+
<P>
|
|
110
|
+
Component that can schedule events to execute in the future. Similar to the <CODE>ScheduledExecutorService</CODE>
|
|
111
|
+
<P>
|
|
112
|
+
|
|
113
|
+
<P>
|
|
114
|
+
<HR>
|
|
115
|
+
|
|
116
|
+
<P>
|
|
117
|
+
|
|
118
|
+
<!-- ========== METHOD SUMMARY =========== -->
|
|
119
|
+
|
|
120
|
+
<A NAME="method_summary"><!-- --></A>
|
|
121
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
122
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
123
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
124
|
+
<B>Method Summary</B></FONT></TH>
|
|
125
|
+
</TR>
|
|
126
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
127
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
128
|
+
<CODE> <A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A></CODE></FONT></TD>
|
|
129
|
+
<TD><CODE><B><A HREF="../../../org/jetlang/core/Scheduler.html#schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)">schedule</A></B>(java.lang.Runnable command,
|
|
130
|
+
long delay,
|
|
131
|
+
java.util.concurrent.TimeUnit unit)</CODE>
|
|
132
|
+
|
|
133
|
+
<BR>
|
|
134
|
+
Creates and executes a one-shot action that becomes enabled after the given delay.</TD>
|
|
135
|
+
</TR>
|
|
136
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
137
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
138
|
+
<CODE> <A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A></CODE></FONT></TD>
|
|
139
|
+
<TD><CODE><B><A HREF="../../../org/jetlang/core/Scheduler.html#scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)">scheduleWithFixedDelay</A></B>(java.lang.Runnable command,
|
|
140
|
+
long initialDelay,
|
|
141
|
+
long delay,
|
|
142
|
+
java.util.concurrent.TimeUnit unit)</CODE>
|
|
143
|
+
|
|
144
|
+
<BR>
|
|
145
|
+
Creates and executes a periodic action that becomes enabled first
|
|
146
|
+
after the given initial delay, and subsequently with the
|
|
147
|
+
given delay between the termination of one execution and the
|
|
148
|
+
commencement of the next.</TD>
|
|
149
|
+
</TR>
|
|
150
|
+
</TABLE>
|
|
151
|
+
<A NAME="methods_inherited_from_class_org.jetlang.core.Disposable"><!-- --></A>
|
|
152
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
153
|
+
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
154
|
+
<TH ALIGN="left"><B>Methods inherited from interface org.jetlang.core.<A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A></B></TH>
|
|
155
|
+
</TR>
|
|
156
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
157
|
+
<TD><CODE><A HREF="../../../org/jetlang/core/Disposable.html#dispose()">dispose</A></CODE></TD>
|
|
158
|
+
</TR>
|
|
159
|
+
</TABLE>
|
|
160
|
+
|
|
161
|
+
<P>
|
|
162
|
+
|
|
163
|
+
<!-- ============ METHOD DETAIL ========== -->
|
|
164
|
+
|
|
165
|
+
<A NAME="method_detail"><!-- --></A>
|
|
166
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
167
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
168
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
169
|
+
<B>Method Detail</B></FONT></TH>
|
|
170
|
+
</TR>
|
|
171
|
+
</TABLE>
|
|
172
|
+
|
|
173
|
+
<A NAME="schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)"><!-- --></A><H3>
|
|
174
|
+
schedule</H3>
|
|
175
|
+
<PRE>
|
|
176
|
+
<A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A> <B>schedule</B>(java.lang.Runnable command,
|
|
177
|
+
long delay,
|
|
178
|
+
java.util.concurrent.TimeUnit unit)</PRE>
|
|
179
|
+
<DL>
|
|
180
|
+
<DD>Creates and executes a one-shot action that becomes enabled after the given delay.
|
|
181
|
+
<P>
|
|
182
|
+
<DD><DL>
|
|
183
|
+
</DL>
|
|
184
|
+
</DD>
|
|
185
|
+
<DD><DL>
|
|
186
|
+
<DT><B>Parameters:</B><DD><CODE>command</CODE> - the task to execute<DD><CODE>delay</CODE> - the time from now to delay execution<DD><CODE>unit</CODE> - the time unit of the delay parameter
|
|
187
|
+
<DT><B>Returns:</B><DD>a Disposable that can be used to cancel execution</DL>
|
|
188
|
+
</DD>
|
|
189
|
+
</DL>
|
|
190
|
+
<HR>
|
|
191
|
+
|
|
192
|
+
<A NAME="scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)"><!-- --></A><H3>
|
|
193
|
+
scheduleWithFixedDelay</H3>
|
|
194
|
+
<PRE>
|
|
195
|
+
<A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A> <B>scheduleWithFixedDelay</B>(java.lang.Runnable command,
|
|
196
|
+
long initialDelay,
|
|
197
|
+
long delay,
|
|
198
|
+
java.util.concurrent.TimeUnit unit)</PRE>
|
|
199
|
+
<DL>
|
|
200
|
+
<DD>Creates and executes a periodic action that becomes enabled first
|
|
201
|
+
after the given initial delay, and subsequently with the
|
|
202
|
+
given delay between the termination of one execution and the
|
|
203
|
+
commencement of the next. If any execution of the task
|
|
204
|
+
encounters an exception, subsequent executions are suppressed.
|
|
205
|
+
Otherwise, the task will only terminate via cancellation or
|
|
206
|
+
termination of the scheduler.
|
|
207
|
+
<P>
|
|
208
|
+
<DD><DL>
|
|
209
|
+
</DL>
|
|
210
|
+
</DD>
|
|
211
|
+
<DD><DL>
|
|
212
|
+
<DT><B>Parameters:</B><DD><CODE>command</CODE> - the task to execute<DD><CODE>initialDelay</CODE> - the time to delay first execution<DD><CODE>delay</CODE> - the delay between the termination of one
|
|
213
|
+
execution and the commencement of the next<DD><CODE>unit</CODE> - the time unit of the initialDelay and delay parameters
|
|
214
|
+
<DT><B>Returns:</B><DD>a Disposable that can be used to cancel execution</DL>
|
|
215
|
+
</DD>
|
|
216
|
+
</DL>
|
|
217
|
+
<!-- ========= END OF CLASS DATA ========= -->
|
|
218
|
+
<HR>
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
222
|
+
<A NAME="navbar_bottom"><!-- --></A>
|
|
223
|
+
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
224
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
225
|
+
<TR>
|
|
226
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
227
|
+
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
228
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
229
|
+
<TR ALIGN="center" VALIGN="top">
|
|
230
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
231
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
232
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
233
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/Scheduler.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
234
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
235
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
236
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
237
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
238
|
+
</TR>
|
|
239
|
+
</TABLE>
|
|
240
|
+
</TD>
|
|
241
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
242
|
+
</EM>
|
|
243
|
+
</TD>
|
|
244
|
+
</TR>
|
|
245
|
+
|
|
246
|
+
<TR>
|
|
247
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
248
|
+
<A HREF="../../../org/jetlang/core/RunnableExecutorImpl.html" title="class in org.jetlang.core"><B>PREV CLASS</B></A>
|
|
249
|
+
<A HREF="../../../org/jetlang/core/SchedulerImpl.html" title="class in org.jetlang.core"><B>NEXT CLASS</B></A></FONT></TD>
|
|
250
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
251
|
+
<A HREF="../../../index.html?org/jetlang/core/Scheduler.html" target="_top"><B>FRAMES</B></A>
|
|
252
|
+
<A HREF="Scheduler.html" target="_top"><B>NO FRAMES</B></A>
|
|
253
|
+
<SCRIPT type="text/javascript">
|
|
254
|
+
<!--
|
|
255
|
+
if(window==top) {
|
|
256
|
+
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
257
|
+
}
|
|
258
|
+
//-->
|
|
259
|
+
</SCRIPT>
|
|
260
|
+
<NOSCRIPT>
|
|
261
|
+
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
262
|
+
</NOSCRIPT>
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
</FONT></TD>
|
|
266
|
+
</TR>
|
|
267
|
+
<TR>
|
|
268
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
269
|
+
SUMMARY: NESTED | FIELD | CONSTR | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
270
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
271
|
+
DETAIL: FIELD | CONSTR | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
272
|
+
</TR>
|
|
273
|
+
</TABLE>
|
|
274
|
+
<A NAME="skip-navbar_bottom"></A>
|
|
275
|
+
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
276
|
+
|
|
277
|
+
<HR>
|
|
278
|
+
Copyright © 2009. All Rights Reserved.
|
|
279
|
+
</BODY>
|
|
280
|
+
</HTML>
|
|
@@ -0,0 +1,354 @@
|
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2
|
+
<!--NewPage-->
|
|
3
|
+
<HTML>
|
|
4
|
+
<HEAD>
|
|
5
|
+
<!-- Generated by javadoc (build 1.6.0_15) on Sat Sep 05 11:49:22 CDT 2009 -->
|
|
6
|
+
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
|
|
7
|
+
<TITLE>
|
|
8
|
+
SchedulerImpl (Jetlang 0.2.0 API)
|
|
9
|
+
</TITLE>
|
|
10
|
+
|
|
11
|
+
<META NAME="date" CONTENT="2009-09-05">
|
|
12
|
+
|
|
13
|
+
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
|
|
14
|
+
|
|
15
|
+
<SCRIPT type="text/javascript">
|
|
16
|
+
function windowTitle()
|
|
17
|
+
{
|
|
18
|
+
if (location.href.indexOf('is-external=true') == -1) {
|
|
19
|
+
parent.document.title="SchedulerImpl (Jetlang 0.2.0 API)";
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
</SCRIPT>
|
|
23
|
+
<NOSCRIPT>
|
|
24
|
+
</NOSCRIPT>
|
|
25
|
+
|
|
26
|
+
</HEAD>
|
|
27
|
+
|
|
28
|
+
<BODY BGCOLOR="white" onload="windowTitle();">
|
|
29
|
+
<HR>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<!-- ========= START OF TOP NAVBAR ======= -->
|
|
33
|
+
<A NAME="navbar_top"><!-- --></A>
|
|
34
|
+
<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
35
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
36
|
+
<TR>
|
|
37
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
38
|
+
<A NAME="navbar_top_firstrow"><!-- --></A>
|
|
39
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
40
|
+
<TR ALIGN="center" VALIGN="top">
|
|
41
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
42
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
43
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
44
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SchedulerImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
45
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
46
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
47
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
48
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
49
|
+
</TR>
|
|
50
|
+
</TABLE>
|
|
51
|
+
</TD>
|
|
52
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
53
|
+
</EM>
|
|
54
|
+
</TD>
|
|
55
|
+
</TR>
|
|
56
|
+
|
|
57
|
+
<TR>
|
|
58
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
59
|
+
<A HREF="../../../org/jetlang/core/Scheduler.html" title="interface in org.jetlang.core"><B>PREV CLASS</B></A>
|
|
60
|
+
<A HREF="../../../org/jetlang/core/SynchronousDisposingExecutor.html" title="class in org.jetlang.core"><B>NEXT CLASS</B></A></FONT></TD>
|
|
61
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
62
|
+
<A HREF="../../../index.html?org/jetlang/core/SchedulerImpl.html" target="_top"><B>FRAMES</B></A>
|
|
63
|
+
<A HREF="SchedulerImpl.html" target="_top"><B>NO FRAMES</B></A>
|
|
64
|
+
<SCRIPT type="text/javascript">
|
|
65
|
+
<!--
|
|
66
|
+
if(window==top) {
|
|
67
|
+
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
68
|
+
}
|
|
69
|
+
//-->
|
|
70
|
+
</SCRIPT>
|
|
71
|
+
<NOSCRIPT>
|
|
72
|
+
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
73
|
+
</NOSCRIPT>
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
</FONT></TD>
|
|
77
|
+
</TR>
|
|
78
|
+
<TR>
|
|
79
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
80
|
+
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
81
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
82
|
+
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
83
|
+
</TR>
|
|
84
|
+
</TABLE>
|
|
85
|
+
<A NAME="skip-navbar_top"></A>
|
|
86
|
+
<!-- ========= END OF TOP NAVBAR ========= -->
|
|
87
|
+
|
|
88
|
+
<HR>
|
|
89
|
+
<!-- ======== START OF CLASS DATA ======== -->
|
|
90
|
+
<H2>
|
|
91
|
+
<FONT SIZE="-1">
|
|
92
|
+
org.jetlang.core</FONT>
|
|
93
|
+
<BR>
|
|
94
|
+
Class SchedulerImpl</H2>
|
|
95
|
+
<PRE>
|
|
96
|
+
java.lang.Object
|
|
97
|
+
<IMG SRC="../../../resources/inherit.gif" ALT="extended by "><B>org.jetlang.core.SchedulerImpl</B>
|
|
98
|
+
</PRE>
|
|
99
|
+
<DL>
|
|
100
|
+
<DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A>, <A HREF="../../../org/jetlang/core/Scheduler.html" title="interface in org.jetlang.core">Scheduler</A></DD>
|
|
101
|
+
</DL>
|
|
102
|
+
<HR>
|
|
103
|
+
<DL>
|
|
104
|
+
<DT><PRE>public class <B>SchedulerImpl</B><DT>extends java.lang.Object<DT>implements <A HREF="../../../org/jetlang/core/Scheduler.html" title="interface in org.jetlang.core">Scheduler</A></DL>
|
|
105
|
+
</PRE>
|
|
106
|
+
|
|
107
|
+
<P>
|
|
108
|
+
Default implementation for scheduling events for execution on fibers.
|
|
109
|
+
<P>
|
|
110
|
+
|
|
111
|
+
<P>
|
|
112
|
+
<HR>
|
|
113
|
+
|
|
114
|
+
<P>
|
|
115
|
+
|
|
116
|
+
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
117
|
+
|
|
118
|
+
<A NAME="constructor_summary"><!-- --></A>
|
|
119
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
120
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
121
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
122
|
+
<B>Constructor Summary</B></FONT></TH>
|
|
123
|
+
</TR>
|
|
124
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
125
|
+
<TD><CODE><B><A HREF="../../../org/jetlang/core/SchedulerImpl.html#SchedulerImpl(org.jetlang.core.DisposingExecutor, java.util.concurrent.ScheduledExecutorService)">SchedulerImpl</A></B>(<A HREF="../../../org/jetlang/core/DisposingExecutor.html" title="interface in org.jetlang.core">DisposingExecutor</A> queue,
|
|
126
|
+
java.util.concurrent.ScheduledExecutorService scheduler)</CODE>
|
|
127
|
+
|
|
128
|
+
<BR>
|
|
129
|
+
</TD>
|
|
130
|
+
</TR>
|
|
131
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
132
|
+
<TD><CODE><B><A HREF="../../../org/jetlang/core/SchedulerImpl.html#SchedulerImpl(java.util.concurrent.Executor)">SchedulerImpl</A></B>(java.util.concurrent.Executor queue)</CODE>
|
|
133
|
+
|
|
134
|
+
<BR>
|
|
135
|
+
</TD>
|
|
136
|
+
</TR>
|
|
137
|
+
</TABLE>
|
|
138
|
+
|
|
139
|
+
<!-- ========== METHOD SUMMARY =========== -->
|
|
140
|
+
|
|
141
|
+
<A NAME="method_summary"><!-- --></A>
|
|
142
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
143
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
144
|
+
<TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
145
|
+
<B>Method Summary</B></FONT></TH>
|
|
146
|
+
</TR>
|
|
147
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
148
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
149
|
+
<CODE> void</CODE></FONT></TD>
|
|
150
|
+
<TD><CODE><B><A HREF="../../../org/jetlang/core/SchedulerImpl.html#dispose()">dispose</A></B>()</CODE>
|
|
151
|
+
|
|
152
|
+
<BR>
|
|
153
|
+
Dispose this instance.</TD>
|
|
154
|
+
</TR>
|
|
155
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
156
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
157
|
+
<CODE> <A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A></CODE></FONT></TD>
|
|
158
|
+
<TD><CODE><B><A HREF="../../../org/jetlang/core/SchedulerImpl.html#schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)">schedule</A></B>(java.lang.Runnable _command,
|
|
159
|
+
long delay,
|
|
160
|
+
java.util.concurrent.TimeUnit unit)</CODE>
|
|
161
|
+
|
|
162
|
+
<BR>
|
|
163
|
+
Creates and executes a one-shot action that becomes enabled after the given delay.</TD>
|
|
164
|
+
</TR>
|
|
165
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
166
|
+
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
167
|
+
<CODE> <A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A></CODE></FONT></TD>
|
|
168
|
+
<TD><CODE><B><A HREF="../../../org/jetlang/core/SchedulerImpl.html#scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)">scheduleWithFixedDelay</A></B>(java.lang.Runnable _command,
|
|
169
|
+
long initialDelay,
|
|
170
|
+
long interval,
|
|
171
|
+
java.util.concurrent.TimeUnit unit)</CODE>
|
|
172
|
+
|
|
173
|
+
<BR>
|
|
174
|
+
Creates and executes a periodic action that becomes enabled first
|
|
175
|
+
after the given initial delay, and subsequently with the
|
|
176
|
+
given delay between the termination of one execution and the
|
|
177
|
+
commencement of the next.</TD>
|
|
178
|
+
</TR>
|
|
179
|
+
</TABLE>
|
|
180
|
+
<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
181
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
182
|
+
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
183
|
+
<TH ALIGN="left"><B>Methods inherited from class java.lang.Object</B></TH>
|
|
184
|
+
</TR>
|
|
185
|
+
<TR BGCOLOR="white" CLASS="TableRowColor">
|
|
186
|
+
<TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</CODE></TD>
|
|
187
|
+
</TR>
|
|
188
|
+
</TABLE>
|
|
189
|
+
|
|
190
|
+
<P>
|
|
191
|
+
|
|
192
|
+
<!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
193
|
+
|
|
194
|
+
<A NAME="constructor_detail"><!-- --></A>
|
|
195
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
196
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
197
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
198
|
+
<B>Constructor Detail</B></FONT></TH>
|
|
199
|
+
</TR>
|
|
200
|
+
</TABLE>
|
|
201
|
+
|
|
202
|
+
<A NAME="SchedulerImpl(java.util.concurrent.Executor)"><!-- --></A><H3>
|
|
203
|
+
SchedulerImpl</H3>
|
|
204
|
+
<PRE>
|
|
205
|
+
public <B>SchedulerImpl</B>(java.util.concurrent.Executor queue)</PRE>
|
|
206
|
+
<DL>
|
|
207
|
+
</DL>
|
|
208
|
+
<HR>
|
|
209
|
+
|
|
210
|
+
<A NAME="SchedulerImpl(org.jetlang.core.DisposingExecutor, java.util.concurrent.ScheduledExecutorService)"><!-- --></A><H3>
|
|
211
|
+
SchedulerImpl</H3>
|
|
212
|
+
<PRE>
|
|
213
|
+
public <B>SchedulerImpl</B>(<A HREF="../../../org/jetlang/core/DisposingExecutor.html" title="interface in org.jetlang.core">DisposingExecutor</A> queue,
|
|
214
|
+
java.util.concurrent.ScheduledExecutorService scheduler)</PRE>
|
|
215
|
+
<DL>
|
|
216
|
+
</DL>
|
|
217
|
+
|
|
218
|
+
<!-- ============ METHOD DETAIL ========== -->
|
|
219
|
+
|
|
220
|
+
<A NAME="method_detail"><!-- --></A>
|
|
221
|
+
<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
222
|
+
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
223
|
+
<TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
224
|
+
<B>Method Detail</B></FONT></TH>
|
|
225
|
+
</TR>
|
|
226
|
+
</TABLE>
|
|
227
|
+
|
|
228
|
+
<A NAME="schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)"><!-- --></A><H3>
|
|
229
|
+
schedule</H3>
|
|
230
|
+
<PRE>
|
|
231
|
+
public <A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A> <B>schedule</B>(java.lang.Runnable _command,
|
|
232
|
+
long delay,
|
|
233
|
+
java.util.concurrent.TimeUnit unit)</PRE>
|
|
234
|
+
<DL>
|
|
235
|
+
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/jetlang/core/Scheduler.html#schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)">Scheduler</A></CODE></B></DD>
|
|
236
|
+
<DD>Creates and executes a one-shot action that becomes enabled after the given delay.
|
|
237
|
+
<P>
|
|
238
|
+
<DD><DL>
|
|
239
|
+
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jetlang/core/Scheduler.html#schedule(java.lang.Runnable, long, java.util.concurrent.TimeUnit)">schedule</A></CODE> in interface <CODE><A HREF="../../../org/jetlang/core/Scheduler.html" title="interface in org.jetlang.core">Scheduler</A></CODE></DL>
|
|
240
|
+
</DD>
|
|
241
|
+
<DD><DL>
|
|
242
|
+
<DT><B>Parameters:</B><DD><CODE>_command</CODE> - the task to execute<DD><CODE>delay</CODE> - the time from now to delay execution<DD><CODE>unit</CODE> - the time unit of the delay parameter
|
|
243
|
+
<DT><B>Returns:</B><DD>a Disposable that can be used to cancel execution</DL>
|
|
244
|
+
</DD>
|
|
245
|
+
</DL>
|
|
246
|
+
<HR>
|
|
247
|
+
|
|
248
|
+
<A NAME="scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)"><!-- --></A><H3>
|
|
249
|
+
scheduleWithFixedDelay</H3>
|
|
250
|
+
<PRE>
|
|
251
|
+
public <A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A> <B>scheduleWithFixedDelay</B>(java.lang.Runnable _command,
|
|
252
|
+
long initialDelay,
|
|
253
|
+
long interval,
|
|
254
|
+
java.util.concurrent.TimeUnit unit)</PRE>
|
|
255
|
+
<DL>
|
|
256
|
+
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/jetlang/core/Scheduler.html#scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)">Scheduler</A></CODE></B></DD>
|
|
257
|
+
<DD>Creates and executes a periodic action that becomes enabled first
|
|
258
|
+
after the given initial delay, and subsequently with the
|
|
259
|
+
given delay between the termination of one execution and the
|
|
260
|
+
commencement of the next. If any execution of the task
|
|
261
|
+
encounters an exception, subsequent executions are suppressed.
|
|
262
|
+
Otherwise, the task will only terminate via cancellation or
|
|
263
|
+
termination of the scheduler.
|
|
264
|
+
<P>
|
|
265
|
+
<DD><DL>
|
|
266
|
+
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jetlang/core/Scheduler.html#scheduleWithFixedDelay(java.lang.Runnable, long, long, java.util.concurrent.TimeUnit)">scheduleWithFixedDelay</A></CODE> in interface <CODE><A HREF="../../../org/jetlang/core/Scheduler.html" title="interface in org.jetlang.core">Scheduler</A></CODE></DL>
|
|
267
|
+
</DD>
|
|
268
|
+
<DD><DL>
|
|
269
|
+
<DT><B>Parameters:</B><DD><CODE>_command</CODE> - the task to execute<DD><CODE>initialDelay</CODE> - the time to delay first execution<DD><CODE>interval</CODE> - the delay between the termination of one
|
|
270
|
+
execution and the commencement of the next<DD><CODE>unit</CODE> - the time unit of the initialDelay and delay parameters
|
|
271
|
+
<DT><B>Returns:</B><DD>a Disposable that can be used to cancel execution</DL>
|
|
272
|
+
</DD>
|
|
273
|
+
</DL>
|
|
274
|
+
<HR>
|
|
275
|
+
|
|
276
|
+
<A NAME="dispose()"><!-- --></A><H3>
|
|
277
|
+
dispose</H3>
|
|
278
|
+
<PRE>
|
|
279
|
+
public void <B>dispose</B>()</PRE>
|
|
280
|
+
<DL>
|
|
281
|
+
<DD><B>Description copied from interface: <CODE><A HREF="../../../org/jetlang/core/Disposable.html#dispose()">Disposable</A></CODE></B></DD>
|
|
282
|
+
<DD>Dispose this instance. It should be considered unusable after calling this method
|
|
283
|
+
<P>
|
|
284
|
+
<DD><DL>
|
|
285
|
+
<DT><B>Specified by:</B><DD><CODE><A HREF="../../../org/jetlang/core/Disposable.html#dispose()">dispose</A></CODE> in interface <CODE><A HREF="../../../org/jetlang/core/Disposable.html" title="interface in org.jetlang.core">Disposable</A></CODE></DL>
|
|
286
|
+
</DD>
|
|
287
|
+
<DD><DL>
|
|
288
|
+
</DL>
|
|
289
|
+
</DD>
|
|
290
|
+
</DL>
|
|
291
|
+
<!-- ========= END OF CLASS DATA ========= -->
|
|
292
|
+
<HR>
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
<!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
296
|
+
<A NAME="navbar_bottom"><!-- --></A>
|
|
297
|
+
<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
298
|
+
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
299
|
+
<TR>
|
|
300
|
+
<TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
301
|
+
<A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
302
|
+
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
303
|
+
<TR ALIGN="center" VALIGN="top">
|
|
304
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
305
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
306
|
+
<TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
307
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/SchedulerImpl.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
308
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
309
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
310
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
311
|
+
<TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
312
|
+
</TR>
|
|
313
|
+
</TABLE>
|
|
314
|
+
</TD>
|
|
315
|
+
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
316
|
+
</EM>
|
|
317
|
+
</TD>
|
|
318
|
+
</TR>
|
|
319
|
+
|
|
320
|
+
<TR>
|
|
321
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
322
|
+
<A HREF="../../../org/jetlang/core/Scheduler.html" title="interface in org.jetlang.core"><B>PREV CLASS</B></A>
|
|
323
|
+
<A HREF="../../../org/jetlang/core/SynchronousDisposingExecutor.html" title="class in org.jetlang.core"><B>NEXT CLASS</B></A></FONT></TD>
|
|
324
|
+
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
325
|
+
<A HREF="../../../index.html?org/jetlang/core/SchedulerImpl.html" target="_top"><B>FRAMES</B></A>
|
|
326
|
+
<A HREF="SchedulerImpl.html" target="_top"><B>NO FRAMES</B></A>
|
|
327
|
+
<SCRIPT type="text/javascript">
|
|
328
|
+
<!--
|
|
329
|
+
if(window==top) {
|
|
330
|
+
document.writeln('<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
331
|
+
}
|
|
332
|
+
//-->
|
|
333
|
+
</SCRIPT>
|
|
334
|
+
<NOSCRIPT>
|
|
335
|
+
<A HREF="../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
336
|
+
</NOSCRIPT>
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
</FONT></TD>
|
|
340
|
+
</TR>
|
|
341
|
+
<TR>
|
|
342
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
343
|
+
SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
344
|
+
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
345
|
+
DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
346
|
+
</TR>
|
|
347
|
+
</TABLE>
|
|
348
|
+
<A NAME="skip-navbar_bottom"></A>
|
|
349
|
+
<!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
350
|
+
|
|
351
|
+
<HR>
|
|
352
|
+
Copyright © 2009. All Rights Reserved.
|
|
353
|
+
</BODY>
|
|
354
|
+
</HTML>
|