本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4: getReadSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
public ChannelListener.Setter<? extends StreamSourceChannel> getReadSetter() {
return readSetter;
}
示例5: getCloseSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
public ChannelListener.Setter<? extends StreamSourceChannel> getCloseSetter() {
return closeSetter;
}
示例6: getCloseSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends HttpClientConnection> getCloseSetter() {
return closeSetter;
}
示例7: getCloseSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends ClientConnection> getCloseSetter() {
return closeSetter;
}
示例8: getCloseSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<ServerConnection> getCloseSetter() {
return closeSetter;
}
示例9: getCloseSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends ConnectedChannel> getCloseSetter() {
return channel.getCloseSetter();
}
示例10: getWriteSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends S> getWriteSetter() {
return writeSetter;
}
示例11: getCloseSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends S> getCloseSetter() {
return closeSetter;
}
示例12: getReadSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends R> getReadSetter() {
return readSetter;
}
示例13: getCloseSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends R> getCloseSetter() {
return closeSetter;
}
示例14: getReadSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends StreamSourceChannel> getReadSetter() {
return channel.getReadSetter();
}
示例15: getCloseSetter
import org.xnio.ChannelListener; //导入方法依赖的package包/类
@Override
public ChannelListener.Setter<? extends StreamSourceChannel> getCloseSetter() {
return channel.getCloseSetter();
}