First clean of Moquette's channel abstraction to user Netty's one

This commit is contained in:
andsel
2016-01-24 19:21:24 +01:00
parent c7e82497dd
commit beb556c73c
6 changed files with 60 additions and 50 deletions
@@ -15,6 +15,8 @@
*/
package io.moquette.server;
import io.netty.channel.Channel;
/**
* Value object to maintain the information of single connection, like ClientID, IoSession,
* and other clean session fla.
@@ -25,10 +27,10 @@ package io.moquette.server;
public class ConnectionDescriptor {
public final String clientID;
public final ServerChannel session;
public final Channel session;
public final boolean cleanSession;
public ConnectionDescriptor(String clientID, ServerChannel session, boolean cleanSession) {
public ConnectionDescriptor(String clientID, Channel session, boolean cleanSession) {
this.clientID = clientID;
this.session = session;
this.cleanSession = cleanSession;