当前位置: 首页>>代码示例>>Java>>正文


Java ChannelListener.Setter方法代码示例

本文整理汇总了Java中org.xnio.ChannelListener.Setter方法的典型用法代码示例。如果您正苦于以下问题:Java ChannelListener.Setter方法的具体用法?Java ChannelListener.Setter怎么用?Java ChannelListener.Setter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.xnio.ChannelListener的用法示例。


在下文中一共展示了ChannelListener.Setter方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
public ChannelListener.Setter<? extends StreamSourceChannel> getCloseSetter() {
    if (closeSetter == null) {
        closeSetter = new ChannelListener.SimpleSetter<>();
        if (!isFinished()) {
            if(delegate instanceof ConduitStreamSourceChannel) {
                ((ConduitStreamSourceChannel)delegate).setCloseListener(ChannelListeners.delegatingChannelListener(this, closeSetter));
            } else {
                delegate.getCloseSetter().set(ChannelListeners.delegatingChannelListener(this, closeSetter));
            }
        }
    }
    return closeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:14,代码来源:DetachableStreamSourceChannel.java

示例2: getWriteSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends StreamSinkChannel> getWriteSetter() {
    if (writeSetter == null) {
        writeSetter = new ChannelListener.SimpleSetter<>();
        if (!isFinished()) {
            if(delegate instanceof ConduitStreamSinkChannel) {
                ((ConduitStreamSinkChannel) delegate).setWriteListener(new SetterDelegatingListener((ChannelListener.SimpleSetter)writeSetter, this));
            } else {
                delegate.getWriteSetter().set(new SetterDelegatingListener((ChannelListener.SimpleSetter)writeSetter, this));
            }
        }
    }
    return writeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:15,代码来源:DetachableStreamSinkChannel.java

示例3: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends StreamSinkChannel> getCloseSetter() {
    if (closeSetter == null) {
        closeSetter = new ChannelListener.SimpleSetter<>();
        if (!isFinished()) {
            delegate.getCloseSetter().set(ChannelListeners.delegatingChannelListener(this, closeSetter));
        }
    }
    return closeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:11,代码来源:DetachableStreamSinkChannel.java

示例4: getReadSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
public ChannelListener.Setter<? extends StreamSourceChannel> getReadSetter() {
    return readSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:4,代码来源:DelegatingStreamSourceChannel.java

示例5: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
public ChannelListener.Setter<? extends StreamSourceChannel> getCloseSetter() {
    return closeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:4,代码来源:DelegatingStreamSourceChannel.java

示例6: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends HttpClientConnection> getCloseSetter() {
    return closeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:HttpClientConnection.java

示例7: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends ClientConnection> getCloseSetter() {
    return closeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:SpdyClientConnection.java

示例8: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<ServerConnection> getCloseSetter() {
    return closeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:AbstractServerConnection.java

示例9: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends ConnectedChannel> getCloseSetter() {
    return channel.getCloseSetter();
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:SpdyServerConnection.java

示例10: getWriteSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends S> getWriteSetter() {
    return writeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:AbstractFramedStreamSinkChannel.java

示例11: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends S> getCloseSetter() {
    return closeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:AbstractFramedStreamSinkChannel.java

示例12: getReadSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends R> getReadSetter() {
    return readSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:AbstractFramedStreamSourceChannel.java

示例13: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends R> getCloseSetter() {
    return closeSetter;
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:AbstractFramedStreamSourceChannel.java

示例14: getReadSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends StreamSourceChannel> getReadSetter() {
    return channel.getReadSetter();
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:ChannelFunctionStreamSourceChannel.java

示例15: getCloseSetter

import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends StreamSourceChannel> getCloseSetter() {
    return channel.getCloseSetter();
}
 
开发者ID:lamsfoundation,项目名称:lams,代码行数:5,代码来源:ChannelFunctionStreamSourceChannel.java


注:本文中的org.xnio.ChannelListener.Setter方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。