E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
TimeUnit
Java实现的并发任务处理实例
分享给大家供大家参考,具体如下:publicvoidinit(){super.init();this.ioThreadPool=newThreadPoolExecutor(50,50,Long.MAX_VALUE,
TimeUnit
.SECONDS
xiaofancn
·
2015-11-26 14:54
线程池Executors
java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.
TimeUnit
jethai
·
2015-11-25 12:02
线程池
Java/C++
线程池Executors
java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.
TimeUnit
jethai
·
2015-11-25 12:02
线程池
Test
importorg.testng.annotations.Test;importorg.testng.annotations.DataProvider;importjava.util.concurrent.
TimeUnit
to be crazy
·
2015-11-21 19:00
当数据达到2000或者等待5秒后再次运行
importjava.util.HashMap; importjava.util.List; importjava.util.Map; importjava.util.concurrent.
TimeUnit
_Leo_Lee_
·
2015-11-19 18:00
google guava cache 处理
LoadingCache cache = CacheBuilder.newBuilder().maximumSize(100) .expireAfterAccess(5,
TimeUnit
.SECONDS
z69183787
·
2015-11-17 10:00
Google Guava Cache实例与分析
12345678910LoadingCachegraphs=CacheBuilder.newBuilder() .maximumSize(1000) .expireAfterWrite(10,
TimeUnit
.MINUTES
z69183787
·
2015-11-17 10:00
ThreadPoolExecutor使用介绍
private static ExecutorService exec = new ThreadPoolExecutor(8, 8, 0L,
TimeUnit
.MILLISECONDS, new LinkedBlockingQueue
·
2015-11-13 18:47
selenium页面元素定位处理
common.login.loginAdmin(); driver2.findElement(By.id("m_1335")).click(); driver2.manage().timeouts().implicitlyWait(5,
TimeUnit
.SECONDS
mcg1988
·
2015-11-13 17:00
模拟银行账户汇款操作(并发控制)
import java.util.Arrays;import java.util.concurrent.CountDownLatch;import java.util.concurrent.
TimeUnit
·
2015-11-13 13:59
并发
java--ThreadPool线程池简单用法
java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.
TimeUnit
·
2015-11-13 12:49
ThreadPool
ThreadPoolExecutor使用介绍
private static ExecutorService exec = new ThreadPoolExecutor(8, 8, 0L,
TimeUnit
.MILLISECONDS, new LinkedBlockingQueue
·
2015-11-13 12:12
《java.util.concurrent 包源码阅读》20 DelayQueue
所以继承了Comparable接口: public interface Delayed extends Comparable<Delayed> { long getDelay(
TimeUnit
·
2015-11-13 06:00
Concurrent
使用无锁的方式和有锁的方式的程序性能对比
java.util.concurrent.ExecutorService; 2 import java.util.concurrent.Executors; 3 import java.util.concurrent.
TimeUnit
·
2015-11-13 03:39
性能
日期工具类
TimeUnit
import java.util.concurrent.
TimeUnit
; 2 3 public class TimeUnitDemo { 4 private
TimeUnit
timeUnit
·
2015-11-13 01:13
time
ThreadPoolExecutor使用介绍
private static ExecutorService exec = new ThreadPoolExecutor(8, 8, 0L,
TimeUnit
.MILLISECONDS, new LinkedBlockingQueue
·
2015-11-12 19:39
android okhttp例子
importjava.io.IOException; importjava.io.InputStream; importjava.util.List; importjava.util.concurrent.
TimeUnit
艾伦蓝
·
2015-11-12 16:00
ThreadPoolExecutor使用介绍
private static ExecutorService exec = new ThreadPoolExecutor(8, 8, 0L,
TimeUnit
.MILLISECONDS, new LinkedBlockingQueue
·
2015-11-12 08:08
ThreadPoolExecutor使用介绍
private static ExecutorService exec = new ThreadPoolExecutor(8, 8, 0L,
TimeUnit
.MILLISECONDS, new LinkedBlockingQueue
·
2015-11-11 13:15
ThreadPoolExecutor使用介绍
private static ExecutorService exec = new ThreadPoolExecutor(8, 8, 0L,
TimeUnit
.MILLISECONDS, new LinkedBlockingQueue
·
2015-11-11 13:40
ThreadPoolExecutor使用介绍
private static ExecutorService exec = new ThreadPoolExecutor(8, 8, 0L,
TimeUnit
.MILLISECONDS, new LinkedBlockingQueue
·
2015-11-11 02:07
Android -> 如何避免Handler引起内存泄露
,finalRunnablerunnable=newRunnable(){publicvoidrun(){//...dosomework}};handler.postDelayed(runnable,
TimeUnit
.SECONDS.toMillis
墨玉wsc
·
2015-11-07 18:48
android
Android -> 如何避免Handler引起内存泄露
finalRunnablerunnable=newRunnable(){ publicvoidrun(){ //...dosomework } }; handler.postDelayed(runnable,
TimeUnit
.SECONDS.toMillis
Alex_wsc
·
2015-11-07 18:00
内存泄露
JAVA并发,后台线程
1 package com.xt.thinks21_2; 2 3 import java.util.concurrent.
TimeUnit
; 4 5 /** 6 * 后台线程测试
·
2015-11-07 14:48
java并发
守护线程中finally语句不一定能够执行
在程序中,如果所有的非守护线程都已经执行完毕,那么守护线程将立即被结束,因此守护线程的finally子句不一定能够执行,示例如下:importjava.util.concurrent.
TimeUnit
;
u013238950
·
2015-11-04 23:00
理解wait notify的好例子
1 import java.util.concurrent.
TimeUnit
; 2 3 4 public class Example2 { 5 6 /** 7
·
2015-11-02 18:32
notify
java中的ThreadPoolExecutor
ThreadPoolExecutor(int corePoolSize, int maximumPoolSize, long keepAliveTime,
TimeUnit
unit, BlockingQueue
·
2015-11-02 18:47
怎样将string转换为想要的枚举值
一句话的事: 假设定义时间单位枚举
TimeUnit
public enum
TimeUnit
{ 
·
2015-11-02 17:59
String
TimeUnit
TimeUnit
是一个枚举类型,可以
·
2015-11-02 11:51
time
JDK1.5中线程池,定时器知识
java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.
TimeUnit
·
2015-10-31 11:27
JDK1.5
CountDownLatch
java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; import java.util.concurrent.
TimeUnit
·
2015-10-31 10:09
CountDownLatch
java线程池ThreadPoolExecutor的使用
java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.
TimeUnit
·
2015-10-31 09:37
java 多线程(ThreadPoolExecutor (补充))
java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.
TimeUnit
·
2015-10-27 14:52
wait和notify
package concurrency.wait;import java.util.concurrent.
TimeUnit
;class MyObject implements
·
2015-10-21 12:44
notify
获取线程中抛出的异常信息
// 从现在开始delay毫秒之后,每隔一天执行一次,转换为毫秒 3 // service.scheduleAtFixedRate(this, delay, period,
TimeUnit
·
2015-10-21 10:02
异常信息
selenium2 webdriver学习笔记2015.10.18
以下程序实现126邮箱的写信、存草稿及预览验证packageemail;importstaticorg.junit.Assert.fail;importjava.util.concurrent.
TimeUnit
hare25008
·
2015-10-18 16:46
自动化测试
优先使用
TimeUnit
类中的sleep()
TimeUnit
是什么?
m635674608
·
2015-10-18 12:00
java多线程 -- join()方法应用
publicvoidrun(){ //TODOAuto-generatedmethodstub System.out.println("beginDateSource"+newDate()); try{
TimeUnit
.SECONDS.sleep
zhangliguoaccp
·
2015-10-14 14:00
线程join()
JDK之
TimeUnit
类应用
TimeUnit
是什么?
zhangliguoaccp
·
2015-10-14 14:00
java
timeunit
scheduleAtFixedRate与scheduleWithFixedDelay区别?
importjava.util.Date;importjava.util.Random;importjava.util.concurrent.Executors;importjava.util.concurrent.
TimeUnit
zx_code
·
2015-10-10 14:00
thread
java
scheduleAtFixedRate与scheduleWithFixedDelay区别?
importjava.util.Date;importjava.util.Random;importjava.util.concurrent.Executors;importjava.util.concurrent.
TimeUnit
zx_code
·
2015-10-10 14:00
java
thread
Thread.sleep()和
TimeUnit
.SECONDS.sleep()的区别与联系
刚看到
TimeUnit
.SECONDS.sleep()方法时觉得挺奇怪的,这里怎么也提供sleep方法?
红色小宇宙
·
2015-09-21 15:00
JDK中的常用工具类
”结尾,如:集合工具类Collections,数组工具类Arrays,对象工具类Objects,文件工具类Files,路径工具类Paths,数学工具类Maths;但也有一些不是以“s”结尾的工具类,如
TimeUnit
WSSISKNIGHT
·
2015-09-20 13:00
jdk
工具类
ServletContextListener监听+Thread使用
importjava.util.concurrent.Executors; importjava.util.concurrent.ScheduledExecutorService; importjava.util.concurrent.
TimeUnit
yhl_jxy
·
2015-09-18 17:00
thread
run
怎么给一个函数的运行设置超时
=newLinkedBlockingQueue(3);//Integer.MAX_VALUE ExecutorServicemExecutor=newThreadPoolExecutor(4,6,4,
TimeUnit
.SECONDS
jkkjklmn
·
2015-09-18 11:00
Java Deferred/Promise 库JDeferred 实例
importjava.text.SimpleDateFormat;importjava.util.Date;importjava.util.concurrent.Callable;importjava.util.concurrent.
TimeUnit
yunshouhu
·
2015-09-16 10:26
java
lockInterruptibly 和lock的区别
比较区别在于 lockInterruptibly优先考虑响应中断,而不是响应锁定的普通获取或重入获取 Java代码 package test; import java.util.concurrent.
TimeUnit
z69183787
·
2015-09-13 21:00
ex3
不知道对错importjava.util.concurrent.
TimeUnit
; importjavax.swing.JFrame; importjavax.swing.JLabel; importjavax.swing.SwingUtilities
taoxiuxia
·
2015-08-26 11:00
ex2
importjava.util.concurrent.
TimeUnit
; importjavax.swing.JFrame; importjavax.swing.JLabel; publicclassex2
taoxiuxia
·
2015-08-26 10:00
去哪儿网自动化
importjava.text.SimpleDateFormat;importjava.util.Calendar;importjava.util.Date;importjava.util.concurrent.
TimeUnit
to be crazy
·
2015-08-22 14:00
上一页
24
25
26
27
28
29
30
31
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他