Optimize hippo4j common module class annotation naming

pull/246/head
chen.ma 2 years ago
parent 14e1f414df
commit 5b7c2a01f3

@ -22,9 +22,6 @@ import lombok.experimental.Accessors;
/**
* Client close hook execute.
*
* @author chen.ma
* @date 2022/1/6 22:14
*/
public interface ClientCloseHookExecute {

@ -21,9 +21,6 @@ import java.util.List;
/**
* Json facade.
*
* @author chen.ma
* @date 2021/12/13 20:01
*/
public interface JsonFacade {

@ -24,9 +24,6 @@ import java.util.Map;
/**
* Notify config builder.
*
* @author chen.ma
* @date 2022/2/24 19:50
*/
public interface NotifyConfigBuilder {

@ -24,9 +24,6 @@ import java.util.concurrent.ThreadPoolExecutor;
/**
* Get thread status in thread pool.
*
* @author chen.ma
* @date 2022/1/9 12:47
*/
public interface ThreadDetailState {

@ -19,9 +19,6 @@ package cn.hippo4j.common.api;
/**
* Thread-pool dynamic refresh.
*
* @author chen.ma
* @date 2022/2/26 12:26
*/
public interface ThreadPoolDynamicRefresh {

@ -26,9 +26,6 @@ import java.util.Map;
/**
* Application context holder.
*
* @author chen.ma
* @date 2021/6/20 18:49
*/
public class ApplicationContextHolder implements ApplicationContextAware {

@ -19,9 +19,6 @@ package cn.hippo4j.common.constant;
/**
* Change thread-pool constants.
*
* @author chen.ma
* @date 2022/5/1 17:25
*/
public class ChangeThreadPoolConstants {

@ -19,9 +19,6 @@ package cn.hippo4j.common.constant;
/**
* Constants.
*
* @author chen.ma
* @date 2021/6/16 23:01
*/
public class Constants {

@ -21,9 +21,6 @@ import java.io.Serializable;
/**
* Builder pattern interface definition.
*
* @author chen.ma
* @date 2021/7/5 21:39
*/
public interface Builder<T> extends Serializable {

@ -28,9 +28,6 @@ import java.util.concurrent.ConcurrentHashMap;
/**
* Send observer notification.
*
* @author chen.ma
* @date 2021/12/25 19:47
*/
@Slf4j
public class AbstractSubjectCenter {

@ -19,9 +19,6 @@ package cn.hippo4j.common.design.observer;
/**
* Observer.
*
* @author chen.ma
* @date 2021/12/25 19:46
*/
public interface Observer<T> {

@ -19,9 +19,6 @@ package cn.hippo4j.common.design.observer;
/**
* Message notifying observer.
*
* @author chen.ma
* @date 2021/12/25 19:54
*/
public interface ObserverMessage<T> {

@ -19,9 +19,6 @@ package cn.hippo4j.common.enums;
/**
* Del enum.
*
* @author chen.ma
* @date 2021/3/26 18:45
*/
public enum DelEnum {

@ -21,9 +21,6 @@ import java.util.Objects;
/**
* Enable enum.
*
* @author chen.ma
* @date 2021/12/21 20:34
*/
public enum EnableEnum {

@ -23,9 +23,6 @@ import java.util.concurrent.ThreadFactory;
/**
* Executor factory.
*
* @author chen.ma
* @date 2021/6/23 18:35
*/
public class ExecutorFactory {

@ -26,10 +26,7 @@ import java.util.concurrent.ExecutorService;
import java.util.concurrent.atomic.AtomicBoolean;
/**
* Thread Pool Manager.
*
* @author chen.ma
* @date 2021/6/23 18:36
* Thread-pool manager.
*/
public class ThreadPoolManager {

@ -19,9 +19,6 @@ package cn.hippo4j.common.function;
/**
* Matcher.
*
* @author chen.ma
* @date 2022/1/9 13:29
*/
@FunctionalInterface
public interface Matcher<T> {

@ -18,10 +18,7 @@
package cn.hippo4j.common.function;
/**
* .
*
* @author chen.ma
* @date 2021/11/9 00:06
* No args consumer.
*/
@FunctionalInterface
public interface NoArgsConsumer {

@ -24,9 +24,6 @@ import java.io.Serializable;
/**
* Global remote pool info.
*
* @author chen.ma
* @date 2021/6/23 21:08
*/
@Getter
@Setter

@ -25,9 +25,6 @@ import lombok.extern.slf4j.Slf4j;
/**
* Instance info.
*
* @author chen.ma
* @date 2021/7/13 22:10
*/
@Slf4j
@Getter

@ -21,9 +21,6 @@ import lombok.Data;
/**
* Many pool run state info.
*
* @author chen.ma
* @date 2022/1/8 12:54
*/
@Data
public class ManyThreadPoolRunStateInfo extends ThreadPoolRunStateInfo {

@ -24,9 +24,6 @@ import java.util.List;
/**
* Thread detail state info.
*
* @author chen.ma
* @date 2022/1/9 12:36
*/
@Data
@Accessors(chain = true)

@ -22,9 +22,6 @@ import lombok.experimental.Accessors;
/**
* Thread-pool base info.
*
* @author chen.ma
* @date 2022/1/22 12:10
*/
@Data
@Accessors(chain = true)

@ -19,9 +19,6 @@ package cn.hippo4j.common.model;
/**
* Thread-pool parameter.
*
* @author chen.ma
* @date 2021/6/24 16:04
*/
public interface ThreadPoolParameter {

@ -24,9 +24,6 @@ import java.io.Serializable;
/**
* Thread pool parameter info.
*
* @author chen.ma
* @date 2021/6/16 23:18
*/
@Data
@Accessors(chain = true)

@ -24,9 +24,6 @@ import java.io.Serializable;
/**
* Pool run state info.
*
* @author chen.ma
* @date 2021/7/7 18:57
*/
@Getter
@Setter

@ -23,9 +23,6 @@ import lombok.NoArgsConstructor;
/**
* Token info.
*
* @author chen.ma
* @date 2021/12/20 20:02
*/
@Data
@NoArgsConstructor

@ -24,9 +24,6 @@ import java.util.List;
/**
* Base message.
*
* @author chen.ma
* @date 2021/12/7 20:31
*/
@Data
@NoArgsConstructor

@ -22,9 +22,6 @@ import java.util.List;
/**
* Abstract message monitoring interface.
*
* @author chen.ma
* @date 2021/12/6 20:16
*/
public interface Message<T extends Message> extends Serializable {

@ -22,9 +22,6 @@ import java.util.Map;
/**
* Message request.
*
* @author chen.ma
* @date 2021/12/10 21:17
*/
public interface MessageRequest<T extends Message> {

@ -19,9 +19,6 @@ package cn.hippo4j.common.monitor;
/**
* Message type enum.
*
* @author chen.ma
* @date 2021/12/7 19:34
*/
public enum MessageTypeEnum {

@ -26,9 +26,6 @@ import java.util.Map;
/**
* Message wrapper.
*
* @author chen.ma
* @date 2021/12/7 22:42
*/
@Data
@NoArgsConstructor

@ -22,9 +22,6 @@ import lombok.NoArgsConstructor;
/**
* Dynamic thread pool runtime data.
*
* @author chen.ma
* @date 2021/12/6 18:18
*/
@Data
@NoArgsConstructor

@ -22,10 +22,7 @@ import lombok.Builder;
import lombok.Data;
/**
* .
*
* @author chen.ma
* @date 2021/10/28 22:15
* Alarm control dto.
*/
@Data
@Builder

@ -30,9 +30,6 @@ import java.util.concurrent.locks.ReentrantLock;
/**
* Alarm control assembly.
*
* @author chen.ma
* @date 2021/10/28 21:24
*/
public class AlarmControlHandler {

@ -32,10 +32,7 @@ import java.util.List;
import java.util.Map;
/**
* Base send message service impl.
*
* @author chen.ma
* @date 2022/2/22 21:32
* Hippo base send message service.
*/
@Slf4j
@RequiredArgsConstructor

@ -21,10 +21,7 @@ import cn.hippo4j.common.notify.request.AlarmNotifyRequest;
import cn.hippo4j.common.notify.request.ChangeParameterNotifyRequest;
/**
* Send message service.
*
* @author chen.ma
* @date 2022/2/22 19:56
* Hippo4j send message service.
*/
public interface HippoSendMessageService {

@ -21,10 +21,7 @@ import lombok.Data;
import lombok.experimental.Accessors;
/**
* .
*
* @author chen.ma
* @date 2021/11/17 22:12
* Notify config dto.
*/
@Data
@Accessors(chain = true)

@ -19,9 +19,6 @@ package cn.hippo4j.common.notify;
/**
* Notify platform enum.
*
* @author chen.ma
* @date 2021/8/15 15:50
*/
public enum NotifyPlatformEnum {

@ -19,9 +19,6 @@ package cn.hippo4j.common.notify;
/**
* Notify type enum.
*
* @author chen.ma
* @date 2022/2/22 19:44
*/
public enum NotifyTypeEnum {

@ -21,9 +21,6 @@ import cn.hippo4j.common.notify.request.base.NotifyRequest;
/**
* Send message handler.
*
* @author chen.ma
* @date 2021/8/15 15:44
*/
public interface SendMessageHandler<T extends NotifyRequest, R extends NotifyRequest> {

@ -26,9 +26,6 @@ import java.util.Map;
/**
* Thread pool notify alarm.
*
* @author chen.ma
* @date 2021/8/15 19:13
*/
@Data
@NoArgsConstructor

@ -23,9 +23,6 @@ import java.util.List;
/**
* Thread pool notify DTO.
*
* @author chen.ma
* @date 2022/2/24 19:08
*/
@Data
public class ThreadPoolNotifyDTO {

@ -19,9 +19,6 @@ package cn.hippo4j.common.notify.platform;
/**
* Ding alarm constants.
*
* @author chen.ma
* @date 2021/11/26 20:03
*/
public class DingAlarmConstants {

@ -46,9 +46,6 @@ import static cn.hippo4j.common.notify.platform.DingAlarmConstants.*;
/**
* Send ding notification message.
*
* @author chen.ma
* @date 2021/8/15 15:49
*/
@Slf4j
public class DingSendMessageHandler implements SendMessageHandler<AlarmNotifyRequest, ChangeParameterNotifyRequest> {

@ -18,10 +18,7 @@
package cn.hippo4j.common.notify.platform;
/**
* lark alarm constants.
*
* @author imyzt
* @date 2021-11-23 19:29
* Lark alarm constants.
*/
public class LarkAlarmConstants {

@ -39,9 +39,6 @@ import static cn.hippo4j.common.notify.platform.LarkAlarmConstants.*;
/**
* Send lark notification message.
*
* @author imyzt
* @date 2021/11/22 21:12
*/
@Slf4j
@AllArgsConstructor

@ -19,9 +19,6 @@ package cn.hippo4j.common.notify.platform;
/**
* We chat alarm constants.
*
* @author chen.ma
* @date 2021/11/26 20:03
*/
public class WeChatAlarmConstants {

@ -36,9 +36,6 @@ import static cn.hippo4j.common.notify.platform.WeChatAlarmConstants.*;
/**
* WeChat send message handler.
*
* @author chen.ma
* @date 2021/11/26 20:06
*/
@Slf4j
public class WeChatSendMessageHandler implements SendMessageHandler<AlarmNotifyRequest, ChangeParameterNotifyRequest> {

@ -24,9 +24,6 @@ import lombok.experimental.Accessors;
/**
* Alarm notify request.
*
* @author chen.ma
* @date 2022/2/22 19:41
*/
@Data
@Accessors(chain = true)

@ -22,9 +22,6 @@ import lombok.Data;
/**
* Change parameter notify request.
*
* @author chen.ma
* @date 2022/2/22 20:22
*/
@Data
public class ChangeParameterNotifyRequest extends BaseNotifyRequest {

@ -21,9 +21,6 @@ import lombok.Data;
/**
* Robot alarm notify request.
*
* @author chen.ma
* @date 2022/2/22 21:50
*/
@Data
public class RobotAlarmNotifyRequest extends AlarmNotifyRequest {

@ -21,9 +21,6 @@ import lombok.Data;
/**
* Robot change parameter notify request.
*
* @author chen.ma
* @date 2022/2/22 21:03
*/
@Data
public class RobotChangeParameterNotifyRequest extends ChangeParameterNotifyRequest {

@ -24,9 +24,6 @@ import java.util.List;
/**
* Thread pool notify request.
*
* @author chen.ma
* @date 2022/2/24 19:06
*/
@Data
@AllArgsConstructor

@ -21,9 +21,6 @@ import lombok.Data;
/**
* Base notify request.
*
* @author chen.ma
* @date 2022/2/22 19:35
*/
@Data
public class BaseNotifyRequest implements NotifyRequest {

@ -19,9 +19,6 @@ package cn.hippo4j.common.notify.request.base;
/**
* Notify request.
*
* @author chen.ma
* @date 2022/2/22 19:38
*/
public interface NotifyRequest {
}

@ -23,9 +23,6 @@ import java.lang.reflect.Array;
/**
* Array util.
*
* @author chen.ma
* @date 2021/12/30 21:42
*/
public class ArrayUtil {
@ -85,8 +82,7 @@ public class ArrayUtil {
return clone(array1);
}
final Class<?> type1 = array1.getClass().getComponentType();
@SuppressWarnings("unchecked")
final T[] joinedArray = (T[]) Array.newInstance(type1, array1.length + array2.length);
@SuppressWarnings("unchecked") final T[] joinedArray = (T[]) Array.newInstance(type1, array1.length + array2.length);
System.arraycopy(array1, 0, joinedArray, 0, array1.length);
try {
System.arraycopy(array2, 0, joinedArray, array1.length, array2.length);

@ -25,9 +25,6 @@ import java.util.Map;
/**
* Assert.
*
* @author chen.ma
* @date 2021/6/29 09:36
*/
public class Assert {

@ -18,10 +18,7 @@
package cn.hippo4j.common.toolkit;
/**
* .
*
* @author chen.ma
* @date 2021/11/20 12:21
* Byte conversion tool class
*/
public class ByteConvertUtil {

@ -24,9 +24,6 @@ import java.util.Map;
/**
* Collection util.
*
* @author chen.ma
* @date 2021/12/22 20:43
*/
public class CollectionUtil {

@ -21,9 +21,6 @@ import cn.hippo4j.common.function.NoArgsConsumer;
/**
* Condition util.
*
* @author chen.ma
* @date 2021/11/6 22:40
*/
public class ConditionUtil {

@ -23,9 +23,6 @@ import cn.hippo4j.common.model.ThreadPoolParameterInfo;
/**
* Content util.
*
* @author chen.ma
* @date 2021/6/24 16:13
*/
public class ContentUtil {

@ -24,9 +24,6 @@ import static cn.hippo4j.common.constant.Constants.GROUP_KEY_DELIMITER;
/**
* Group key.
*
* @author chen.ma
* @date 2021/6/24 21:12
*/
public class GroupKey {

@ -23,9 +23,6 @@ import java.util.List;
/**
* JSON util.
*
* @author chen.ma
* @date 2021/12/13 20:27
*/
public class JSONUtil {

@ -33,9 +33,6 @@ import java.util.List;
/**
* Jackson util.
*
* @author chen.ma
* @date 2021/12/13 20:02
*/
public class JacksonHandler implements JsonFacade {

@ -28,9 +28,6 @@ import java.util.List;
/**
* MD5 util.
*
* @author chen.ma
* @date 2021/6/22 17:55
*/
public class Md5Util {

@ -28,9 +28,6 @@ import java.util.Map;
/**
* Message convert.
*
* @author chen.ma
* @date 2021/12/10 21:27
*/
public class MessageConvert {

@ -25,9 +25,6 @@ import java.util.concurrent.ConcurrentHashMap;
/**
* Reflect util.
*
* @author chen.ma
* @date 2022/1/9 13:16
*/
public class ReflectUtil {

@ -19,9 +19,6 @@ package cn.hippo4j.common.toolkit;
/**
* String util.
*
* @author chen.ma
* @date 2021/12/22 20:58
*/
public class StringUtil {

@ -19,9 +19,6 @@ package cn.hippo4j.common.toolkit;
/**
* Thread util.
*
* @author chen.ma
* @date 2021/12/6 23:34
*/
public class ThreadUtil {

@ -25,9 +25,6 @@ import java.util.Optional;
/**
* User context (Transition scheme).
*
* @author chen.ma
* @date 2021/11/17 21:13
*/
public class UserContext {

@ -24,9 +24,6 @@ import java.io.Serializable;
/**
* Result.
*
* @author chen.ma
* @date 2021/3/19 16:12
*/
@Data
@Accessors(chain = true)

@ -25,9 +25,6 @@ import java.util.Optional;
/**
* Results.
*
* @author chen.ma
* @date 2021/3/19 16:12
*/
public final class Results {

@ -21,9 +21,6 @@ import lombok.Getter;
/**
* Abstract exception.
*
* @author chen.ma
* @date 2022/3/2 20:01
*/
public class AbstractException extends RuntimeException {

@ -19,9 +19,6 @@ package cn.hippo4j.common.web.exception;
/**
* Error code abstract interface.
*
* @author chen.ma
* @date 2021/9/16 15:39
*/
public interface ErrorCode {

@ -19,9 +19,6 @@ package cn.hippo4j.common.web.exception;
/**
* Error code enum.
*
* @author chen.ma
* @date 2021/3/19 16:07
*/
public enum ErrorCodeEnum implements ErrorCode {
@ -29,7 +26,6 @@ public enum ErrorCodeEnum implements ErrorCode {
* UNKNOWN_ERROR
*/
UNKNOWN_ERROR {
@Override
public String getCode() {
return "1";
@ -45,7 +41,6 @@ public enum ErrorCodeEnum implements ErrorCode {
* VALIDATION_ERROR
*/
VALIDATION_ERROR {
@Override
public String getCode() {
return "2";
@ -61,7 +56,6 @@ public enum ErrorCodeEnum implements ErrorCode {
* SERVICE_ERROR
*/
SERVICE_ERROR {
@Override
public String getCode() {
return "3";
@ -77,7 +71,6 @@ public enum ErrorCodeEnum implements ErrorCode {
* NOT_FOUND
*/
NOT_FOUND {
@Override
public String getCode() {
return "404";
@ -93,7 +86,6 @@ public enum ErrorCodeEnum implements ErrorCode {
* LOGIN_TIMEOUT
*/
LOGIN_TIMEOUT {
@Override
public String getCode() {
return "A000004";

@ -21,9 +21,6 @@ import lombok.EqualsAndHashCode;
/**
* Service exception.
*
* @author chen.ma
* @date 2021/3/19 16:14
*/
@EqualsAndHashCode(callSuper = true)
public class ServiceException extends AbstractException {

Loading…
Cancel
Save