首先,它将使代码变得复杂,因为您将不得不进行池的管理,也不得不跟踪xhr实例的生命周期。
First, it would complicate your code because you would have to manage a pool and track the life cycle of the XHR instances.
依我看,它提供了一个连接池把传入代码包装在纤程当中,等到连接可用的时候再恢复纤程。
As I see, it allows to pass code wrapped in Fibers to a pool of connections, which then resumes the Fibers as connections become available.
大多数业务程序员都不愿意,为了使用JDBCSPI而编写他们自己的数据源和连接池代码,并实现一个命名的服务器。
Most business programmers cannot justify the time it takes to write their own datasource and connection pool code plus implement a naming server so the JDBC SPI can be used.
清单4显示了在应用程序模块中查找创建的数据库连接池所需的代码。
Listing 4 shows the code in the application module needed to lookup the created database connection pool.
提供者创建的受管对象包含与JDBC包装器(由容器提供的连接池管理器添加)相似的自动征用代码。
The managed objects created by the provider contain similar auto-enlistment code as the JDBC wrapper added by the container-supplied connection pool manager.
这就意味着,在JDBC 3.0下,您现存的代码可以自动利用语句池。
This means that under JDBC 3.0, your existing code will automatically leverage statement pooling.
该代码可能实现了自己的线程、缓存、连接池甚至(但愿不会如此)安全基础设施。
The code might have implemented its own threading, caching, connection pooling, or even (heaven forbid) security infrastructure.
在这里,异步的意义在于“把IO操作放到内置的线程池”,通过代码检查操作状态,获得“未来”句柄结果。
Asynchronous in this case means "punt my IO operation to a built-in thread pool", with subsequent code checking on the status of those operations and getting results from a "future" handle.
首先,考虑以下E JB客户机代码示例,该客户机访问实现连接池的LDAP目录。
First, consider the code example below of an EJB client accessing an LDAP directory that implements a connection pool.
另外要注意到的是,单独的连接池数据源是dataSource的另一个部署选项,并且不需要修改任何代码。
Also notice that the standalone connection-pooling dataSource is yet another deployment option for the 'dataSource' and does not require any code changes.
您还需要在web.xml 中声明该资源引用,并在应用程序代码中通过JNDI 查找数据库池。
You also need to declare the resource reference in web.xml and look for the database pool via JNDI from the application code.
最后,CustomerService实用程序向您展示了如何在代码内访问此连接池。
Finally, the Customer Service utility showed you how this connection pool can be accessed within the code.
实用工具JAR,它包括用于线程池实现的特定代码。
A utility JAR that includes the specific code for the thread pool implementation.
其它最新变化都是在RC2里面完成的,诸如“请求伪造保护”的改进和ActiveRecord连接池代码的调优。
Some last minute changes were done in RC2, namely the improvement of the request forgery protection and tuning of the ActiveRecord connection pooling code.
推荐:我们使用RationalPerformance Tester的定制代码特性,为数据池方法创建另一个选择,不强制一次性加载所有数据。
Recommendation: We used Rational Performance Tester's Custom Code feature to create an alternative to the data pool method that wouldn't force all data to be loaded at once.
例如,现有的依赖于DriverManager或专用连接池的JDBC代码可能被更新成使用DataSource的。
For example, existing JDBC code that depends on DriverManager or proprietary connection pooling solutions can be updated to make use of DataSources.
你可以使用每行包含多个元素的数据池,但是用户必须在这个测试的自定义代码中增加一些功能来取出单个元素。
You can use data pools that contain multiple elements per line, but the user would have to add functions to the test's custom code to extract individual elements.
当您调用第三方代码而这些代码没有使用监视器的有些时候不可能达到上面的要求,在此情况下,您所能采取的最佳做法是尝试在进行池操作时使创建的垃圾量最小。
Sometimes this isn't possible when you're calling third-party code that doesn't use monitors. In such cases, the best you can do is try to minimize the amount of garbage you create while polling.
清单1底部的四行代码则证明无论请求ConnPool池类的一个实例多少次,它都会返回相同的对象。
The four lines of code at the bottom of Listing 1 prove that no matter how many times you ask for an instance of the ConnPool pool class, it will always return the same object.
分析这段代码时您可以看到,我们添加了另一个队列实例,然后将该队列传递给第一个线程池类ThreadURL。
In looking at the code, you can see that we added another instance of a queue, and then passed that queue into the first thread pool class, ThreadURL.
当池销毁代码运行时,它调用并且清理所有它发现的注册。
When the pool destruction code runs, it invokes any and all cleanup hooks it finds registered with it.
为避免相似功能的重复开发,实现代码重用的对象复用架构和基于该架构的线程池实现方案;
The objects reuse framework realizes the codes reuse for similar functions and is used for design of threads pool.
你不能同时搜索多个集合不启动多个搜索(在一个线程池,例如),然后聚合的结果,在你的客户端代码。
You can't search multiple collections simultaneously without actually starting multiple searches (in a thread pool for example) and then aggregating the results within your client code.
不少实际编制代码据说在影片中,例如,“下降,下降,下降通过池眼泪…”和“我们要沿着黄砖路了。”
Quite a few actual programming codes were said during the film, for instance, "down, down, down through the pool of tears..." and "we're going to go down the yellow brick road now."
注:我发现这段代码运行良好,加载到另一个网站在同一个应用程序池相同的服务器。
NOTE: I found that this code runs fine loaded into another site on the same server in the same Application Pool.
注:我发现这段代码运行良好,加载到另一个网站在同一个应用程序池相同的服务器。
NOTE: I found that this code runs fine loaded into another site on the same server in the same Application Pool.
应用推荐