979899100101102103104105106
private boolean isUnique(Object command) { if (!command.getClass().isAnnotationPresent(Command.class)) return false; Command commandAnnotation = command.getClass().getAnnotation( Command.class); return commandAnnotation.unique(); }
104105106107108109110111112
return commandAnnotation.unique(); } private Long getUniqueStorageTimeout(Object command) { Command commandAnnotation = command.getClass().getAnnotation( Command.class); return commandAnnotation.uniqueStorageTimeout(); }
5960616263646566
*/ private boolean isAsynchronous(Object command) { if (! command.getClass().isAnnotationPresent(Command.class)) return false; Command commandAnnotation = command.getClass().getAnnotation(Command.class); return commandAnnotation.asynchronous(); }