Consider a positive integer N written in standard notation with k+1 digits a?i?? as a?k???a?1??a?0?? with 0≤a?i??<10 for all i and a?k??>0. Then N is ...
分类:
其他好文 时间:
2018-12-08 20:24:07
阅读次数:
125
Linux下mysql修改连接超时wait_timeout 1,首先: show variables like '%timeout%'; 显示结果: + + + | Variable_name | Value | + + + | connect_timeout | 10 | | delayed_in ...
分类:
数据库 时间:
2018-11-24 14:08:28
阅读次数:
289
一、前言延迟队列的使用场景:1.未按时支付的订单,30分钟过期之后取消订单;2.给活跃度比较低的用户间隔N天之后推送消息,提高活跃度;3.过1分钟给新注册会员的用户,发送注册邮件等。实现延迟队列的方式有两种:通过消息过期后进入死信交换器,再由交换器转发到延迟消费队列,实现延迟功能;使用rabbitmq-delayed-message-exchange插件实现延迟功能;注意:延迟插件rabbitmq
分类:
编程语言 时间:
2018-11-16 21:02:39
阅读次数:
189
Consider a positive integer N written in standard notation with k+1 digits a?i?? as a?k???a?1??a?0?? with 0≤a?i??<10for all i and a?k??>0. Then N is p ...
分类:
其他好文 时间:
2018-11-01 16:07:47
阅读次数:
160
Consider a positive integer N written in standard notation with k+1 digits a?i?? as a?k???a?1??a?0?? with 0≤a?i??<10 for all i and a?k??>0. Then N is ...
分类:
其他好文 时间:
2018-09-03 19:22:39
阅读次数:
171
MysqlWorkbench Export Data时报错问题MysqlWorkbench6.0之后的版本使用export data时会遇到这个错误12Running: /Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump --defaults-file
="/var/folders/xl/s14
分类:
数据库 时间:
2018-06-29 17:56:54
阅读次数:
205
DelayQueue 是一中阻塞队列,需要实现接口Delayed定义的方法.做下使用记录和心得吧, 源码部分:取值的逻辑相似 超时加排序机制 ...
分类:
其他好文 时间:
2018-06-17 19:05:42
阅读次数:
161
publicfinalstaticlongCIRCLE_REGIST_DELAYED_TIME=isTest?30000:30L2460601000;//周期性重发时间间隔30天>>毫秒就这样的一行代码,如果30没有指明为L类型,后面多个乘法算出来的数字就是Int类型,而且还有可能是负数。但是如果把乘数的结果直接写出来,编译器这时才会提醒类型不匹配。即使我前面定义了是long型,但是后
分类:
其他好文 时间:
2018-06-16 11:49:43
阅读次数:
110
Consider a positive integer N written in standard notation with k+1 digits a~i~ as a~k~...a~1~a~0~ with 0 <= a~i~ < 10 for all i and a~k~ > 0. Then N ...
分类:
其他好文 时间:
2018-06-09 23:20:40
阅读次数:
199
DelayQueue,带有延迟元素的线程安全队列,当非阻塞从队列中获取元素时,返回最早达到延迟时间的元素,或空(没有元素达到延迟时间)。DelayQueue的泛型参数需要实现Delayed接口,Delayed接口继承了Comparable接口,DelayQueue内部使用非线程安全的优先队列(Pri ...
分类:
编程语言 时间:
2018-03-08 17:26:17
阅读次数:
205