Enum Service.Type

  • All Implemented Interfaces:
    Serializable, Comparable<Service.Type>
    Enclosing interface:
    Service<I,​R>

    public static enum Service.Type
    extends Enum<Service.Type>
    Service calls can appear at the start of a traversal or mid-traversal. If mid-traversal, they can operate in a streaming fashion or as a barrier. A Tinkerpop service instance can only operate in one of those three modes, however if the underlying service can do multiple modes, it can be registered using a Service.ServiceFactory capable of providing service instances for the supported types.
    • Enum Constant Detail

      • Start

        public static final Service.Type Start
        Start the traversal with no upstream input.
      • Streaming

        public static final Service.Type Streaming
        Mid-traversal with streaming input.
      • Barrier

        public static final Service.Type Barrier
        Mid-traversal with all-at-once input.
    • Method Detail

      • values

        public static Service.Type[] 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 (Service.Type c : Service.Type.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Service.Type 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.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null