pax_global_header 0000666 0000000 0000000 00000000064 11665530560 0014521 g ustar 00root root 0000000 0000000 52 comment=8a5d9170f13e25fbd6bf7666fcd7134571eaa868
async-http-client-1.6.5/ 0000775 0000000 0000000 00000000000 11665530560 0015100 5 ustar 00root root 0000000 0000000 async-http-client-1.6.5/.gitignore 0000664 0000000 0000000 00000000246 11665530560 0017072 0 ustar 00root root 0000000 0000000 *.class
*~
.*.swp
.*.swo
.loadpath
.buildpath
.classpath
.project
.settings
.idea
*.iml
*.ipr
*.iws
nbproject
.DS_Store
target
test-output
/META-INF/MANIFEST.MF
work
async-http-client-1.6.5/LICENSE-2.0.txt 0000664 0000000 0000000 00000026136 11665530560 0017230 0 ustar 00root root 0000000 0000000
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
async-http-client-1.6.5/README 0000664 0000000 0000000 00000012052 11665530560 0015760 0 ustar 00root root 0000000 0000000 Async Http Client
Copyright 2010 Ning Inc
DESCRIPTION
-----------
Getting started: http://is.gd/kexrN (PDF)
http://is.gd/ja6My (HTML)
Async Http Client library purpose is to allow Java applications to easily execute HTTP requests and asynchronously process the HTTP responses. The Async HTTP Client library is simple to use. First, in order to add it to your Maven project, simply add this dependency:
* Callback methods get invoked in the following order:
*
*
*
* Returning a {@link AsyncHandler.STATE#ABORT} from any of those callback methods will interrupt asynchronous response
* processing, after that only {@link #onCompleted()} is going to be called.
*
*
* AsyncHandler aren't thread safe, hence you should avoid re-using the same instance when doing concurrent requests.
* As an exmaple, the following may produce unexpected results:
* {@code
* AsyncHandler ah = new AsyncHandler() {....};
* AsyncHttpClient client = new AsyncHttpClient();
* client.prepareGet("http://...").execute(ah);
* client.prepareGet("http://...").execute(ah);
* }
* It is recommended to create a new instance instead.
*
* @param
true
but {@link #setProxyServer(ProxyServer)} was used
* to explicitly set a proxy server, the latter is preferred.
*
* See http://download.oracle.com/javase/1.4.2/docs/guide/net/properties.html
*/
public Builder setUseProxyProperties(boolean useProxyProperties) {
this.useProxyProperties = useProxyProperties;
return this;
}
public Builder setIOThreadMultiplier(int multiplier){
this.ioThreadMultiplier = multiplier;
return this;
}
/**
* Set the {@link HostnameVerifier}
* @param hostnameVerifier {@link HostnameVerifier}
* @return this
*/
public Builder setHostnameVerifier(HostnameVerifier hostnameVerifier){
this.hostnameVerifier = hostnameVerifier;
return this;
}
/**
* Create a config builder with values taken from the given prototype configuration.
*
* @param prototype the configuration to use as a prototype.
*/
public Builder(AsyncHttpClientConfig prototype) {
allowPoolingConnection = prototype.getAllowPoolingConnection();
providerConfig = prototype.getAsyncHttpProviderConfig();
connectionsPool = prototype.getConnectionsPool();
defaultConnectionTimeOutInMs = prototype.getConnectionTimeoutInMs();
defaultIdleConnectionInPoolTimeoutInMs = prototype.getIdleConnectionInPoolTimeoutInMs();
allowPoolingConnection = prototype.getKeepAlive();
defaultMaxConnectionPerHost = prototype.getMaxConnectionPerHost();
maxDefaultRedirects = prototype.getMaxRedirects();
defaultMaxTotalConnections = prototype.getMaxTotalConnections();
proxyServer = prototype.getProxyServer();
realm = prototype.getRealm();
defaultRequestTimeoutInMs = prototype.getRequestTimeoutInMs();
sslContext = prototype.getSSLContext();
sslEngineFactory = prototype.getSSLEngineFactory();
userAgent = prototype.getUserAgent();
requestFilters.clear();
responseFilters.clear();
requestFilters.addAll(prototype.getRequestFilters());
responseFilters.addAll(prototype.getResponseFilters());
useRawUrl = prototype.isUseRawUrl();
ioThreadMultiplier = prototype.getIoThreadMultiplier();
}
/**
* Build an {@link AsyncHttpClientConfig}
*
* @return an {@link AsyncHttpClientConfig}
*/
public AsyncHttpClientConfig build() {
if ( applicationThreadPool.isShutdown() ) {
throw new IllegalStateException( "ExecutorServices closed" );
}
if (proxyServer == null && useProxyProperties) {
proxyServer = ProxyUtils.createProxy(System.getProperties());
}
return new AsyncHttpClientConfig(defaultMaxTotalConnections,
defaultMaxConnectionPerHost,
defaultConnectionTimeOutInMs,
defaultIdleConnectionInPoolTimeoutInMs,
defaultRequestTimeoutInMs,
redirectEnabled,
maxDefaultRedirects,
compressionEnabled,
userAgent,
allowPoolingConnection,
reaper,
applicationThreadPool,
proxyServer,
sslContext,
sslEngineFactory,
providerConfig,
connectionsPool,
realm,
requestFilters,
responseFilters,
ioExceptionFilters,
requestCompressionLevel,
maxRequestRetry,
allowSslConnectionPool,
useRawUrl,
removeQueryParamOnRedirect,
hostnameVerifier,
ioThreadMultiplier);
}
}
}
async-http-client-1.6.5/src/main/java/com/ning/http/client/AsyncHttpClientConfigBean.java 0000664 0000000 0000000 00000021152 11665530560 0031336 0 ustar 00root root 0000000 0000000 /*
* Copyright (c) 2010-2011 Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Apache License Version 2.0 is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/
package com.ning.http.client;
import com.ning.http.client.filter.IOExceptionFilter;
import com.ning.http.client.filter.RequestFilter;
import com.ning.http.client.filter.ResponseFilter;
import com.ning.http.util.ProxyUtils;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLSession;
import java.util.LinkedList;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.ThreadFactory;
/**
* Simple JavaBean version of {@link AsyncHttpClientConfig}
*/
public class AsyncHttpClientConfigBean extends AsyncHttpClientConfig {
public AsyncHttpClientConfigBean() {
configureExecutors();
configureDefaults();
configureFilters();
}
void configureFilters() {
requestFilters = new LinkedList
* This class introduces new call: getResponse(), that blocks caller thread as
* long as headers are received, and return Response as soon as possible, but
* still pouring response body into supplied output stream. This handler is
* meant for situations when the "recommended" way (using
* client.prepareGet("http://foo.com/aResource").execute().get()
* would not work for you, since a potentially large response body is about to
* be GETted, but you need headers first, or you don't know yet (depending on
* some logic, maybe coming from headers) where to save the body, or you just
* want to leave body stream to some other component to consume it.
*
* All these above means that this AsyncHandler needs a bit of different * handling than "recommended" way. Some examples: * *
* FileOutputStream fos = ... * BodyDeferringAsyncHandler bdah = new BodyDeferringAsyncHandler(fos); * // client executes async * Future<Response> fr = client.prepareGet("http://foo.com/aresource").execute( * bdah); * // main thread will block here until headers are available * Response response = bdah.getResponse(); * // you can continue examine headers while actual body download happens * // in separate thread * // ... * // finally "join" the download * fr.get(); ** *
* PipedOutputStream pout = new PipedOutputStream(); * BodyDeferringAsyncHandler bdah = new BodyDeferringAsyncHandler(pout); * // client executes async * Future<Response> fr = client.prepareGet("http://foo.com/aresource").execute(bdah); * // main thread will block here until headers are available * Response response = bdah.getResponse(); * if (response.getStatusCode() == 200) { * InputStream pin = new BodyDeferringInputStream(fr,new PipedInputStream(pout)); * // consume InputStream * ... * } else { * // handle unexpected response status code * ... * } ** */ public class BodyDeferringAsyncHandler implements AsyncHandler
null
* in case of some errors.
*
* @return a {@link Response}
* @throws InterruptedException
*/
public Response getResponse() throws InterruptedException, IOException {
// block here as long as headers arrive
headersArrived.await();
try {
semaphore.acquire();
if (throwable != null) {
IOException ioe = new IOException(throwable.getMessage());
ioe.initCause(throwable);
throw ioe;
} else {
return response;
}
} finally {
semaphore.release();
}
}
// ==
/**
* A simple helper class that is used to perform automatic "join" for async
* download and the error checking of the Future of the request.
*/
public static class BodyDeferringInputStream extends FilterInputStream {
private final Futurenull
. See
* {@link BodyDeferringAsyncHandler#getResponse()} method for details.
*
* @return a {@link Response}
* @throws InterruptedException
*/
public Response getAsapResponse() throws InterruptedException,
IOException {
return bdah.getResponse();
}
/**
* Delegates to Future#get()
method. Will block
* as long as complete response arrives.
*
* @return a {@link Response}
* @throws InterruptedException
* @throws ExecutionException
*/
public Response getLastResponse() throws InterruptedException,
ExecutionException {
return future.get();
}
}
} async-http-client-1.6.5/src/main/java/com/ning/http/client/BodyGenerator.java 0000664 0000000 0000000 00000002470 11665530560 0027114 0 ustar 00root root 0000000 0000000 /*
* Copyright (c) 2010-2011 Sonatype, Inc. All rights reserved.
*
* This program is licensed to you under the Apache License Version 2.0,
* and you may not use this file except in compliance with the Apache License Version 2.0.
* You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the Apache License Version 2.0 is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.
*/
package com.ning.http.client;
import java.io.IOException;
/**
* Creates a request body.
*/
public interface BodyGenerator {
/**
* Creates a new instance of the request body to be read. While each invocation of this method is supposed to create
* a fresh instance of the body, the actual contents of all these body instances is the same. For example, the body
* needs to be resend after an authentication challenge of a redirect.
*
* @return The request body, never {@code null}.
* @throws IOException If the body could not be created.
*/
Body createBody()
throws IOException;
}
async-http-client-1.6.5/src/main/java/com/ning/http/client/ByteArrayPart.java 0000664 0000000 0000000 00000002601 11665530560 0027075 0 ustar 00root root 0000000 0000000 /*
* Copyright 2010 Ning, Inc.
*
* Ning licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
*/
package com.ning.http.client;
public class ByteArrayPart implements Part {
private String name;
private String fileName;
private byte[] data;
private String mimeType;
private String charSet;
public ByteArrayPart(String name, String fileName, byte[] data, String mimeType, String charSet) {
this.name = name;
this.fileName = fileName;
this.data = data;
this.mimeType = mimeType;
this.charSet = charSet;
}
public String getName() {
return name;
}
public String getFileName() {
return fileName;
}
public byte[] getData() {
return data;
}
public String getMimeType() {
return mimeType;
}
public String getCharSet() {
return charSet;
}
}
async-http-client-1.6.5/src/main/java/com/ning/http/client/ConnectionsPool.java 0000664 0000000 0000000 00000003642 11665530560 0027466 0 ustar 00root root 0000000 0000000 /*
* Copyright 2010 Ning, Inc.
*
* Ning licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
*/
package com.ning.http.client;
/**
* An interface used by an {@link AsyncHttpProvider} for caching http connections.
*/
public interface ConnectionsPool {
/**
* Add a connection tpo the pool
* @param uri a uri used to retrieve the cached connection
* @param connection an I/O connection
* @return true if added.
*/
public boolean offer(U uri, V connection);
/**
* Remove the connection associated with the uri.
* @param uri the uri used when invoking addConnection
* @return the connection associated with the uri
*/
public V poll(U uri);
/**
* Remove all connections from the cache. A connection might have been associated with several uri.
* @param connection a connection
* @return the true if the connection has been removed
*/
public boolean removeAll(V connection);
/**
* Return true if a connection can be cached. A implementation can decide based on some rules to allow caching
* Calling this method is equivalent of checking the returned value of {@link ConnectionsPool#offer(Object, Object)}
* @return true if a connection can be cached.
*/
public boolean canCacheConnection();
/**
* Destroy all connections that has been cached by this instance.
*/
public void destroy();
}
async-http-client-1.6.5/src/main/java/com/ning/http/client/Cookie.java 0000664 0000000 0000000 00000007347 11665530560 0025571 0 ustar 00root root 0000000 0000000 /*
* Copyright 2010 Ning, Inc.
*
* Ning licenses this file to you under the Apache License, version 2.0
* (the "License"); you may not use this file except in compliance with the
* License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*
*/
package com.ning.http.client;
import java.util.Collections;
import java.util.Set;
import java.util.TreeSet;
public class Cookie {
private final String domain;
private final String name;
private final String value;
private final String path;
private final int maxAge;
private final boolean secure;
private final int version;
private SetAdds a listener and executor to the ListenableFuture. * The listener will be {@linkplain java.util.concurrent.Executor#execute(Runnable) passed * to the executor} for execution when the {@code Future}'s computation is * {@linkplain Future#isDone() complete}. *
*There is no guaranteed ordering of execution of listeners, they may get
* called in the order they were added and they may get called out of order,
* but any listener added through this method is guaranteed to be called once
* the computation is complete.
*
* @param listener the listener to run when the computation is complete.
* @param exec the executor to run the listener in.
* @return this Future
* @throws NullPointerException if the executor or listener was null.
* @throws java.util.concurrent.RejectedExecutionException
* if we tried to execute the listener
* immediately but the executor rejected it.
*/
ListenableFuture An abstract base implementation of the listener support provided by
* {@link ListenableFuture}. This class uses an {@link ExecutionList} to
* guarantee that all registered listeners will be executed. Listener/Executor
* pairs are stored in the execution list and executed in the order in which
* they were added, but because of thread scheduling issues there is no
* guarantee that the JVM will execute them in order. In addition, listeners
* added after the task is complete will be executed immediately, even if some
* previously added listeners have not yet been executed.
*
* @author Sven Mawson
* @since 1
*/
public abstract class AbstractListenableFuture A list of ({@code Runnable}, {@code Executor}) pairs that guarantees
* that every {@code Runnable} that is added using the add method will be
* executed in its associated {@code Executor} after {@link #run()} is called.
* {@code Runnable}s added after {@code run} is called are still guaranteed to
* execute.
*
* @author Nishant Thakkar
* @author Sven Mawson
* @since 1
*/
public final class ExecutionList implements Runnable {
// Logger to log exceptions caught when running runnables.
private static final Logger log =
Logger.getLogger(ExecutionList.class.getName());
// The runnable,executor pairs to execute.
private final Queue