public abstract class UscSessionManager extends Object
Modifier | Constructor and Description |
---|---|
protected |
UscSessionManager(UscPlugin plugin) |
Modifier and Type | Method and Description |
---|---|
UscSessionImpl |
addSession(int port,
io.netty.channel.local.LocalChannel channel)
Add a session (channel) to this session manager.
|
protected abstract UscSessionImpl |
createSession(int sessionId,
int port,
io.netty.channel.local.LocalChannel channel) |
Collection<UscSessionImpl> |
getAllSessions() |
UscSessionImpl |
getSession(int sessionId)
Get the session information corresponding to a session ID.
|
int |
getSessionCount() |
void |
removeAllSessions()
Remove all sessions from this manager.
|
UscSession |
removeSession(int sessionId) |
protected UscSessionManager(UscPlugin plugin)
public UscSessionImpl addSession(int port, io.netty.channel.local.LocalChannel channel)
port
- channel
- public void removeAllSessions()
public UscSession removeSession(int sessionId)
public UscSessionImpl getSession(int sessionId)
sessionId
- public Collection<UscSessionImpl> getAllSessions()
public int getSessionCount()
protected abstract UscSessionImpl createSession(int sessionId, int port, io.netty.channel.local.LocalChannel channel)
Copyright © 2019 OpenDaylight. All rights reserved.