Class WSChannelSettings

All Implemented Interfaces:
Serializable

public class WSChannelSettings extends PersistentRecord
Created by colby.clegg on 2/13/2015. Holds settings applicable to all GAN connections
See Also:
  • Field Details

    • META

      public static final RecordMeta<WSChannelSettings> META
    • Id

      public static final LongField Id
    • Enabled

      public static final BooleanField Enabled
    • RequireSSL

      public static final BooleanField RequireSSL
    • RequireTwoWayAuth

      public static final BooleanField RequireTwoWayAuth
    • SendThreads

      public static final IntField SendThreads
    • ReceiveThreads

      public static final IntField ReceiveThreads
    • Receive_Queue_Max

      public static final IntField Receive_Queue_Max
    • Overload_Wait_Secs

      public static final IntField Overload_Wait_Secs
    • AllowIncoming

      public static final BooleanField AllowIncoming
    • SecurityPolicy

      public static final EnumField<ConnectionSecurityPolicy> SecurityPolicy
    • Whitelist

      public static final StringField Whitelist
    • AllowedProxyHops

      public static final IntField AllowedProxyHops
    • WebsocketSessionIdleTimeout

      public static final IntField WebsocketSessionIdleTimeout
    • TempFilesMaxAgeHours

      public static final IntField TempFilesMaxAgeHours
    • IncomingPingRateMillis

      public static final IntField IncomingPingRateMillis
    • IncomingPingTimeoutMillis

      public static final IntField IncomingPingTimeoutMillis
    • IncomingPingMaxMissed

      public static final IntField IncomingPingMaxMissed
    • ProxyInterceptServiceCalls

      public static final BooleanField ProxyInterceptServiceCalls
  • Constructor Details

    • WSChannelSettings

      public WSChannelSettings()
  • Method Details

    • getMeta

      public RecordMeta<WSChannelSettings> getMeta()
      Description copied from class: SRecordInstance
      This must be defined in every user record's definition to access the SRecord which provides the meta data for this instance. It is normally defined as:-

       SRecord getMeta() {
         return meta;
       };
       

      The actual meta variable is thus not Serialized, but it would not be anyway as it is usually static.

      Specified by:
      getMeta in class PersistentRecord
    • isEnabled

      public boolean isEnabled()
    • requireSSL

      public boolean requireSSL()
    • requireTwoWayAuth

      public boolean requireTwoWayAuth()
      Returns true if two-way authentication is required, meaning that both the client and server must validate each other before SSL handshake is complete.
    • getSecurityPolicy

      public ConnectionSecurityPolicy getSecurityPolicy()
    • getWhitelist

      public List<String> getWhitelist()
      Returns a parsed whitelist. Elements are parsed by the comma character.
      Returns:
      the list of server IDs to accept connections from, not null.
    • isProxyEnabled

      public boolean isProxyEnabled()
    • getAllowedProxyHops

      public int getAllowedProxyHops()
    • isProxyCallInterceptEnabled

      public boolean isProxyCallInterceptEnabled()
      If true, this allows CentralManagerImpl on a proxy gateway to intercept and return service enumeration calls bound for a gateway on the other side of a proxy. The local proxy gateway already knows the service enumeration state of the other gateway since the local gateway regularly queries the other gateway anyway.