mirror of
				https://github.com/gyurix1968/guacamole-client.git
				synced 2025-10-31 17:13:21 +00:00 
			
		
		
		
	GUAC-1100: Add getActiveConnections() function to Connectable.
This commit is contained in:
		| @@ -51,4 +51,13 @@ public interface Connectable { | ||||
|     public GuacamoleSocket connect(GuacamoleClientInformation info) | ||||
|             throws GuacamoleException; | ||||
|  | ||||
|     /** | ||||
|      * Returns the number of active connections associated with this object. | ||||
|      * Implementations may simply return 0 if this value is not tracked. | ||||
|      * | ||||
|      * @return | ||||
|      *     The number of active connections associated with this object. | ||||
|      */ | ||||
|     public int getActiveConnections(); | ||||
|      | ||||
| } | ||||
|   | ||||
| @@ -78,6 +78,11 @@ public class SimpleConnection extends AbstractConnection { | ||||
|  | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int getActiveConnections() { | ||||
|         return 0; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public GuacamoleSocket connect(GuacamoleClientInformation info) | ||||
|             throws GuacamoleException { | ||||
|   | ||||
| @@ -86,6 +86,11 @@ public class SimpleConnectionGroup extends AbstractConnectionGroup { | ||||
|  | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public int getActiveConnections() { | ||||
|         return 0; | ||||
|     } | ||||
|  | ||||
|     @Override | ||||
|     public Set<String> getConnectionIdentifiers() { | ||||
|         return connectionIdentifiers; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user