Java Code Examples for org.xnio.ChannelListener#Setter
The following examples show how to use
org.xnio.ChannelListener#Setter .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DetachableStreamSourceChannel.java From lams with GNU General Public License v2.0 | 5 votes |
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; }
Example 2
Source File: DetachableStreamSinkChannel.java From lams with GNU General Public License v2.0 | 5 votes |
@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; }
Example 3
Source File: AbstractFramedStreamSinkChannel.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends S> getWriteSetter() { return writeSetter; }
Example 4
Source File: InVMConnection.java From thorntail with Apache License 2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends ConnectedChannel> getCloseSetter() { return null; }
Example 5
Source File: InVMConnection.java From thorntail with Apache License 2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends ConnectedChannel> getCloseSetter() { return null; }
Example 6
Source File: ChannelFunctionStreamSourceChannel.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends StreamSourceChannel> getCloseSetter() { return channel.getCloseSetter(); }
Example 7
Source File: ChannelFunctionStreamSourceChannel.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends StreamSourceChannel> getReadSetter() { return channel.getReadSetter(); }
Example 8
Source File: AbstractFramedStreamSourceChannel.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends R> getCloseSetter() { return closeSetter; }
Example 9
Source File: AbstractFramedStreamSourceChannel.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends R> getReadSetter() { return readSetter; }
Example 10
Source File: AbstractFramedStreamSinkChannel.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends S> getCloseSetter() { return closeSetter; }
Example 11
Source File: ServletInitialHandler.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends ConnectedChannel> getCloseSetter() { return null; }
Example 12
Source File: Http2ServerConnection.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends ConnectedChannel> getCloseSetter() { return channel.getCloseSetter(); }
Example 13
Source File: AbstractServerConnection.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<ServerConnection> getCloseSetter() { return closeSetter; }
Example 14
Source File: HttpClientConnection.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends HttpClientConnection> getCloseSetter() { return closeSetter; }
Example 15
Source File: Http2ClientConnection.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends ClientConnection> getCloseSetter() { return closeSetter; }
Example 16
Source File: AjpClientConnection.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends AjpClientConnection> getCloseSetter() { return closeSetter; }
Example 17
Source File: UndertowSslConnection.java From lams with GNU General Public License v2.0 | 4 votes |
@Override public ChannelListener.Setter<? extends SslConnection> getHandshakeSetter() { return handshakeSetter; }
Example 18
Source File: UndertowAcceptingSslChannel.java From lams with GNU General Public License v2.0 | 4 votes |
public ChannelListener.Setter<? extends AcceptingChannel<SslConnection>> getAcceptSetter() { return acceptSetter; }
Example 19
Source File: UndertowAcceptingSslChannel.java From lams with GNU General Public License v2.0 | 4 votes |
public ChannelListener.Setter<? extends AcceptingChannel<SslConnection>> getCloseSetter() { return closeSetter; }
Example 20
Source File: ClientConnection.java From lams with GNU General Public License v2.0 | votes |
ChannelListener.Setter<? extends ClientConnection> getCloseSetter();