Class RestrictionBase

  • All Implemented Interfaces:
    Restriction

    public abstract class RestrictionBase
    extends Object
    implements Restriction
    Base class for Restriction
    • Field Detail

      • restrictionKey

        protected final String restrictionKey
        Restriction Key
      • maxConnectionCount

        protected int maxConnectionCount
        Max Connection Count
    • Constructor Detail

      • RestrictionBase

        public RestrictionBase​(String restrictionKey,
                               int maxConnectionCount)
        Constructor
        Parameters:
        restrictionKey - Restriction Key
        maxConnectionCount - Max Connection Count
    • Method Detail

      • setMaxConnectionCount

        protected void setMaxConnectionCount​(int maxConnectionCount)
        Sets the maxConnectionCount
        Parameters:
        maxConnectionCount - maxConnectionCount
      • isRestricted

        public boolean isRestricted()
        Specified by:
        isRestricted in interface Restriction
        Returns:
        True if is restricted, false otherwise