Class MultiNodeTasks.TaskData

    • Constructor Detail

      • TaskData

        public TaskData​(@NotNull
                        String type,
                        @NotNull
                        String identity)
        Creates a task without arguments
        Parameters:
        type -
        identity -
      • TaskData

        public TaskData​(@NotNull
                        String type,
                        @NotNull
                        String identity,
                        @Nullable
                        Long arg1)
        Creates a task with a single long argument
        Parameters:
        type -
        identity -
        arg1 -
      • TaskData

        public TaskData​(@NotNull
                        String type,
                        @NotNull
                        String identity,
                        @Nullable
                        String stringArg)
        Creates a task with a string argument
        Parameters:
        type -
        identity -
        stringArg -
      • TaskData

        public TaskData​(@NotNull
                        String type,
                        @NotNull
                        String identity,
                        @Nullable
                        Long arg1,
                        @Nullable
                        Long arg2,
                        @Nullable
                        String stringArg)
        Creates a task with a mix of long and string arguments
        Parameters:
        type -
        identity -
        arg1 -
        arg2 -
        stringArg -
      • TaskData

        public TaskData​(@NotNull
                        String type,
                        @NotNull
                        String identity,
                        @Nullable
                        Long arg1,
                        @Nullable
                        Long arg2,
                        @Nullable
                        Supplier<String> stringArgSupplier)
        Creates a task with a mix of long and string arguments. The string argument is defined via supplier in order to reduce memory allocations.
        Parameters:
        type -
        identity -
        arg1 -
        arg2 -
        stringArgSupplier -