-
大小: 13.8MB文件类型: .rar金币: 2下载: 1 次发布日期: 2023-06-17
- 语言: Java
- 标签: API+example
资源简介
netty-3.7.0官方1).API文档
2).所有jar包
3).example使用例子
代码片段和文件信息
/*
* Copyright 2012 The Netty Project
*
* The Netty Project licenses this file to you under the Apache License
* version 2.0 (the “License“); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing software
* distributed under the License is distributed on an “AS IS“ BASIS WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND either express or implied. See the
* License for the specific language governing permissions and limitations
* under the License.
*/
package org.jboss.netty.bootstrap;
import org.jboss.netty.channel.Channel;
import org.jboss.netty.channel.ChannelFactory;
import org.jboss.netty.channel.ChannelHandler;
import org.jboss.netty.channel.ChannelPipeline;
import org.jboss.netty.channel.ChannelPipelineFactory;
import org.jboss.netty.util.ExternalResourceReleasable;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.linkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.TreeMap;
import static org.jboss.netty.channel.Channels.*;
/**
* A helper class which initializes a {@link Channel}. This class provides
* the common data structure for its subclasses which actually initialize
* {@link Channel}s and their child {@link Channel}s using the common data
* structure. Please refer to {@link ClientBootstrap} {@link ServerBootstrap}
* and {@link ConnectionlessBootstrap} for client side server-side and
* connectionless (e.g. UDP) channel initialization respectively.
*
* @apiviz.uses org.jboss.netty.channel.ChannelFactory
*/
public class Bootstrap implements ExternalResourceReleasable {
private volatile ChannelFactory factory;
private volatile ChannelPipeline pipeline = pipeline();
private volatile ChannelPipelineFactory pipelineFactory = pipelineFactory(pipeline);
private volatile Mapject> options = new HashMapject>();
/**
* Creates a new instance with no {@link ChannelFactory} set.
* {@link #setFactory(ChannelFactory)} must be called at once before any
* I/O operation is requested.
*/
protected Bootstrap() {
}
/**
* Creates a new instance with the specified initial {@link ChannelFactory}.
*/
protected Bootstrap(ChannelFactory channelFactory) {
setFactory(channelFactory);
}
/**
* Returns the {@link ChannelFactory} that will be used to perform an
* I/O operation.
*
* @throws IllegalStateException
* if the factory is not set for this bootstrap yet.
* The factory can be set in the constructor or
* {@link #setFactory(ChannelFactory)}.
*/
public ChannelFactory getFactory() {
ChannelFactory factory = this.factory;
if (factory == null) {
throw new IllegalStateException(
“fac
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 83050 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\allclasses-fr
文件 73710 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\allclasses-nofr
文件 143049 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\constant-values.html
文件 32039 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\deprecated-list.html
文件 8832 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\help-doc.html
文件 2039224 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\index-all.html
文件 2759 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\index.html
文件 3092 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\options
文件 45073 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\Bootstrap.html
文件 13082 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\Bootstrap.png
文件 7671 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\class-use\Bootstrap.html
文件 4479 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\class-use\ClientBootstrap.html
文件 4567 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\class-use\ConnectionlessBootstrap.html
文件 4479 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\class-use\ServerBootstrap.html
文件 32113 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\ClientBootstrap.html
文件 3186 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\ClientBootstrap.png
文件 33408 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\ConnectionlessBootstrap.html
文件 3574 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\ConnectionlessBootstrap.png
文件 1341 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\package-fr
文件 7751 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\package-summary.html
文件 13040 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\package-summary.png
文件 5526 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\package-tree.html
文件 5754 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\package-use.html
文件 35497 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\ServerBootstrap.html
文件 3249 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\bootstrap\ServerBootstrap.png
文件 187400 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\buffer\AbstractChannelBuffer.html
文件 34985 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\buffer\AbstractChannelBuffer.png
文件 22957 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\buffer\AbstractChannelBufferFactory.html
文件 10776 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\buffer\AbstractChannelBufferFactory.png
文件 41932 2013-09-05 22:27 netty-3.7.0.Final-dist\netty-3.7.0.Final\doc\api\org\jboss\netty\buffer\BigEndianHeapChannelBuffer.html
............此处省略3505个文件信息
- 上一篇:4S车店维修管理系统
- 下一篇:Android-SDK25.0.0
评论
共有 条评论