Search in sources :

Example 1 with ProcessingStatus

use of io.spine.server.commandbus.ProcessingStatus in project core-java by SpineEventEngine.

the class CommandStore method getStatus.

/**
     * Obtains the processing status for the command with the passed ID.
     */
public ProcessingStatus getStatus(CommandId commandId) {
    final Func<CommandId, ProcessingStatus> func = new Func<CommandId, ProcessingStatus>(this) {

        @Override
        public ProcessingStatus apply(@Nullable CommandId input) {
            checkNotNull(input);
            final ProcessingStatus status = storage.getStatus(input);
            return status;
        }
    };
    return func.execute(commandId);
}
Also used : CommandId(io.spine.base.CommandId) ProcessingStatus(io.spine.server.commandbus.ProcessingStatus) Nullable(javax.annotation.Nullable)

Aggregations

CommandId (io.spine.base.CommandId)1 ProcessingStatus (io.spine.server.commandbus.ProcessingStatus)1 Nullable (javax.annotation.Nullable)1