public final class ServerConnectionSession extends ConnectionSession
| Constructor and Description |
|---|
ServerConnectionSession(Connection connection,
SessionCloseListener<ServerConnectionSession> sessionCloseListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
deregisterChannel(ChannelContext context) |
void |
deregisterChannel(int channelId) |
ChannelContext |
findWSServiceContextByChannelId(int channelId) |
int |
getChannelsAmount() |
int |
getNextAvailChannelId() |
void |
registerChannel(ChannelContext context) |
findWSServiceContextByURI, getAttribute, getConnection, getServiceChannelContext, init, onReadCompleted, setAttributepublic ServerConnectionSession(Connection connection, SessionCloseListener<ServerConnectionSession> sessionCloseListener)
public void registerChannel(@NotNull
ChannelContext context)
registerChannel in class ConnectionSession@Nullable public ChannelContext findWSServiceContextByChannelId(int channelId)
findWSServiceContextByChannelId in class ConnectionSessionpublic void deregisterChannel(int channelId)
public void deregisterChannel(@NotNull
ChannelContext context)
deregisterChannel in class ConnectionSessionpublic void close()
close in interface Connectionclose in class ConnectionSessionpublic int getChannelsAmount()
getChannelsAmount in class ConnectionSessionpublic int getNextAvailChannelId()
Copyright © 2005–2018 Oracle Corporation. All rights reserved.