- 博客(10)
- 资源 (11)
- 收藏
- 关注
原创 Memcached namespaces
NamespacingMemcached does not natively support namespaces or tags.It's difficult to support this natively as you cannot atomically expire the namespaces across all of your servers without adding quite...
2017-04-22 22:02:10 429
原创 Redis Data Layout
0Redis Data LayoutTo better understand the data layout, it helps to identify the main "domain" objects inside RetwisJ.In its current form, RetwisJ allows users to be created, to postmessages, to follo...
2017-04-22 21:58:52 460
原创 Apache mina: IoSession.write(Object msg)剖析
在apache mina中通过IoSession 写入数据,返回一个Future可以获取写入数据的结果。NioSocketSession(AbstractIoSession).write(Object) NioSocketSession(AbstractIoSession).write(Object, SocketAddress) .IoSession通过FilterChain
2017-04-22 21:58:14 2971
原创 Armeria 小试牛刀
HelloService.thrift 定义服务接口namespace java com.example.thriftservice HelloService { string hello(1:string name)}使用thrift-0.9.3.exe 工具,命令:thrift-0.9.3 -r --gen java HelloService.thrift 在当前文件夹g
2017-04-22 21:57:02 3022
原创 Apache Mina 源码再读6 Executor
Do I need to make my IoHandler thread-safe?It depends on your implementation. If you access the resource which is shared across multiple sessions, you have to make it thread-safe. If the resourc
2017-04-07 09:48:59 438
原创 Apache Mina 源码再读5 IoSession.close() 源码剖析
Apache Mina IoSession.close(immediately =true) 关闭流程小结:1 、当线程调用IoSession.close(immediately =true) 时,会创建一个CLOSE_REQUEST 写请求。并返回一个CloseFuture 异步操作2、当Processor在处理IoSesion写数据过程中,会把队列中所有排队的消息写入操作系统缓冲区。3、当轮询到最后一个Close_Future 请求时,此时,等待写入的消息都已经写入到缓冲区。此时,IoS
2017-04-07 09:48:40 3473
原创 Apache Mina 源码再读4 IoSession.write()源码剖析
Apache Mina IoSession.write(Object message) 写出数据流程小结:1、Processor 线程首选轮询newSessions中每一个IoSession. 然后,把IoSession 放到IoService 的managedSessions中进行管理追踪。2、当IoSession.write(Object message) 调用时,会创建一个WriteFuture 对象,并创建一个WriteRequest 对象,把这个对象增加到每一个IoSession关联的Wr
2017-04-07 09:48:22 4405 1
原创 Apache mina 源码再读3 I/O Service 源码剖析
Base interface for all IoAcceptor and IoConnector that provide I/O service and manage IoSession.public interface IoService { }IoAcceptor 和IoConnector 的基础接口IoService 来提供I/O服务和管理IoSessi
2017-04-07 09:48:04 345
原创 Apache Mina 源码再读2 IoSession创建过程源代码剖析
在调用bind()函数后,AcceptorOperationFuture 被注册到AbstractPollingIoAcceptor 类中的registerQueue 队列。在AbstractPollingIoAcceptor中存在IoProcessor 类。/** * An internal interface to represent an 'I/O processor' th
2017-04-07 09:47:43 501
原创 Apache Mina 源码再读 1 Bind过程以及DefaultIoFuture源码
1 、bind 事件 在服务器端调用public final void bind(SocketAddress... addresses) throws IOException 方法绑定本地端口时,仔细看看,Apache Mina 在bind()本地端口做了哪些事情? protected final Set bindInternal(List localAddresses) t
2017-04-07 09:47:17 517
PMbok6 新增敏捷 映射
2018-04-24
Scalable IO in Java -Doug Lea
2015-07-10
java nio and reactor
2015-07-10
flex air案例
2011-05-29
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人