broker/IConnectisoManager: code formatter used
This commit is contained in:
@@ -1,58 +1,60 @@
|
|||||||
|
|
||||||
package io.moquette.connections;
|
package io.moquette.connections;
|
||||||
|
|
||||||
import java.util.Collection;
|
import java.util.Collection;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This interface will be used by an external codebase to retrieve and close
|
* This interface will be used by an external codebase to retrieve and close physical connections.
|
||||||
* physical connections.
|
|
||||||
*
|
*
|
||||||
* @author lbarrios
|
* @author lbarrios
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public interface IConnectionsManager {
|
public interface IConnectionsManager {
|
||||||
/**
|
|
||||||
* Returns the number of physical connections
|
|
||||||
*
|
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public int getActiveConnectionsNo();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Determines wether a MQTT client is connected to the broker.
|
* Returns the number of physical connections
|
||||||
*
|
*
|
||||||
* @param clientID
|
* @return
|
||||||
* @return
|
*/
|
||||||
*/
|
public int getActiveConnectionsNo();
|
||||||
public boolean isConnected(String clientID);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the identifiers of the MQTT clients that are connected to the
|
* Determines wether a MQTT client is connected to the broker.
|
||||||
* broker.
|
*
|
||||||
*
|
* @param clientID
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
public Collection<String> getConnectedClientIds();
|
public boolean isConnected(String clientID);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Closes a physical connection.
|
* Returns the identifiers of the MQTT clients that are connected to the broker.
|
||||||
*
|
*
|
||||||
* @param clientID
|
* @return
|
||||||
* @param closeImmediately
|
*/
|
||||||
* If false, the connection will be flushed before it is closed.
|
public Collection<String> getConnectedClientIds();
|
||||||
* @return
|
|
||||||
*/
|
|
||||||
public boolean closeConnection(String clientID, boolean closeImmediately);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the state of the session of a given client.
|
* Closes a physical connection.
|
||||||
* @param clientID
|
*
|
||||||
* @return
|
* @param clientID
|
||||||
*/
|
* @param closeImmediately
|
||||||
public MqttSession getSessionStatus(String clientID);
|
* If false, the connection will be flushed before it is closed.
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public boolean closeConnection(String clientID, boolean closeImmediately);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the state of all the sessions
|
* Returns the state of the session of a given client.
|
||||||
* @return
|
*
|
||||||
*/
|
* @param clientID
|
||||||
public Collection<MqttSession> getSessions();
|
* @return
|
||||||
|
*/
|
||||||
|
public MqttSession getSessionStatus(String clientID);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the state of all the sessions
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
public Collection<MqttSession> getSessions();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user