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);
}
Aggregations