2017年3月21日

Java NIO (7) FileChannel

摘要: Java NIO FileChannel A Java NIO FileChannel is a channel that is connected to a file. Using a file channel you can read data from a file, and write da 阅读全文

posted @ 2017-03-21 12:15 水桶畅畅 阅读(188) 评论(0) 推荐(0)

Java NIO (6) Selector

摘要: Java NIO Selector A Selector is a Java NIO component which can examine one or more NIO Channel's, and determine which channels are ready for e.g. read 阅读全文

posted @ 2017-03-21 11:36 水桶畅畅 阅读(185) 评论(0) 推荐(0)

Java NIO (5) Channel to Channel Transfers

摘要: Java NIO Channel to Channel Transfers In Java NIO you can transfer data directly from one channel to another, if one of the channels is a FileChannel. 阅读全文

posted @ 2017-03-21 11:13 水桶畅畅 阅读(155) 评论(0) 推荐(0)

Java NIO (4) Scatter / Gather

摘要: Java NIO Scatter / Gather Java NIO comes with built-in scatter / gather support. Scatter / gather are concepts used in reading from, and writing to ch 阅读全文

posted @ 2017-03-21 11:06 水桶畅畅 阅读(107) 评论(0) 推荐(0)

2017年3月17日

Java NIO (3) Buffer

摘要: Java NIO Buffer Java NIO Buffers are used when interacting with NIO Channels. As you know, data is read from channels into buffers, and written from b 阅读全文

posted @ 2017-03-17 17:54 水桶畅畅 阅读(160) 评论(0) 推荐(0)

Java NIO (2) Channel

摘要: Java NIO Channel Java NIO Channels are similar to streams with a few differences: You can both read and write to a Channels. Streams are typically one 阅读全文

posted @ 2017-03-17 17:45 水桶畅畅 阅读(140) 评论(0) 推荐(0)

Java NIO (1) Overview

摘要: Java NIO Overview Java NIO consist of the following core components: Channels Buffers Selectors Java NIO has more classes and components than these, b 阅读全文

posted @ 2017-03-17 17:42 水桶畅畅 阅读(139) 评论(0) 推荐(0)

Netty 4.x 用户手册

摘要: 前言 问题 现在我们使用通用的应用程序和库来进行通信,例如:我们通常用一个HTTP 客户端库通过Web service调用远程服务从一个web服务器上获取信息。然而,一个通用的协议或其实现有时候不能很好地扩展。这就好比我们不使用HTTP 服务器传输超大文件,电子邮件信息,和接近实时的信息,比如财务信 阅读全文

posted @ 2017-03-17 15:38 水桶畅畅 阅读(554) 评论(0) 推荐(0)

《Scalable IO in Java》笔记

摘要: 《Scalable IO in Java》笔记 Scalable IO in Java http://gee.cs.oswego.edu/dl/cpjslides/nio.pdf 基本上所有的网络处理程序都有以下基本的处理过程:Read requestDecode requestProcess se 阅读全文

posted @ 2017-03-17 10:47 水桶畅畅 阅读(171) 评论(0) 推荐(0)

2017年3月16日

Linux下搭建maven私服Nexus 3.2.1-01

摘要: 1. 私服介绍私服是指私有服务器,是架设在局域网的一种特殊的远程仓库,目的是代理远程仓库及部署第三方构建。有了私服之后,当 Maven 需要下载构件时,直接请求私服,私服上存在则下载到本地仓库;否则,私服请求外部的远程仓库,将构件下载到私服,再提供给本地仓库下载。 2. 环境准备Nexus 3.2. 阅读全文

posted @ 2017-03-16 14:18 水桶畅畅 阅读(490) 评论(0) 推荐(0)

导航