Enum OutputSinkFactory.SinkClass

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<OutputSinkFactory.SinkClass>
    Enclosing interface:
    OutputSinkFactory

    public static enum OutputSinkFactory.SinkClass
    extends java.lang.Enum<OutputSinkFactory.SinkClass>
    Defines the kind of object that will arrive on your sink.
    All consumers should accept at least STRING.
    Not all classes are appropriate to all sink types.

    OutputSinkFactory.Sink instances are constructed, and used in terms of sink classes so as to ensure easy future expansion of capabilities without breaking the ABI, and without being entirely weakly typed.
    • Field Detail

      • sinkClass

        public final java.lang.Class<?> sinkClass
        Get the type of message that the sink will be expected to take.
    • Constructor Detail

      • SinkClass

        private SinkClass​(java.lang.Class<?> sinkClass)
    • Method Detail

      • values

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

        public static OutputSinkFactory.SinkClass valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null