Enum FeatureServiceSessionType

    • Enum Constant Detail


        public static final FeatureServiceSessionType TRANSIENT
        A momentary session is used during queries and edit operations.

        This type of session will avoid holding a lock any longer than necessary, allowing other clients to connect to, query, and edit a version being used by the ServiceGeodatabase. Use this type of session when concurrency is more important than data consistency between queries or between concurrent users.

        This is the default value.


        public static final FeatureServiceSessionType PERSISTENT
        A session is held open as long as tables are actively reading or writing.

        This type of session will hold a lock on the version the ServiceGeodatabase is working with, ensuring data consistency but decreasing concurrency. This will create a persistent lock for both read and edit sessions.

        During read sessions, a shared lock will be held while tables are connected to the feature service, preventing other clients from editing the version.

        During edit sessions, an exclusive lock will be held while edits have been made to the locally cached data, preventing other clients from both reading and editing. When all edits are successfully applied to the service, the exclusive lock is released.

    • Method Detail

      • values

        public static FeatureServiceSessionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (FeatureServiceSessionType c : FeatureServiceSessionType.values())
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static FeatureServiceSessionType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null