Class MaxUserConnectionsServiceDescriptor

  • All Implemented Interfaces:
    com.jscape.util.db.IntVersioned, java.io.Serializable

    public class MaxUserConnectionsServiceDescriptor
    extends ServiceDescriptor
    User connection service descriptor. The service described by this descriptor takes responsibility for limiting server access.
    Author:
    Alex Usun
    See Also:
    Serialized Form
    • Constructor Detail

      • MaxUserConnectionsServiceDescriptor

        public MaxUserConnectionsServiceDescriptor​(java.lang.Integer maxConnections,
                                                   int version)
        Creates a new descriptor instance.
        Parameters:
        maxConnections - max user connections
      • MaxUserConnectionsServiceDescriptor

        public MaxUserConnectionsServiceDescriptor()
        This constructor is used by serialization sub-system and is not intended to use directly in client code.
    • Method Detail

      • getMaxConnections

        public java.lang.Integer getMaxConnections()
        Returns max User connections.
        Returns:
        max user connections
      • setMaxConnections

        public void setMaxConnections​(java.lang.Integer maxConnections)
        Sets max user connections.
        Parameters:
        maxConnections - max user connections
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object