-
Notifications
You must be signed in to change notification settings - Fork 208
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master-androidx' into master-androidx-java8
- Loading branch information
Showing
50 changed files
with
508 additions
and
225 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
ComponentApi/src/main/java/com/xiaojinzi/component/anno/RetryAnno.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.xiaojinzi.component.anno; | ||
|
||
import com.xiaojinzi.component.anno.support.UiThreadCreateAnno; | ||
|
||
import java.lang.annotation.ElementType; | ||
import java.lang.annotation.Retention; | ||
import java.lang.annotation.RetentionPolicy; | ||
import java.lang.annotation.Target; | ||
|
||
/** | ||
* 重试注解 | ||
*/ | ||
@UiThreadCreateAnno | ||
@Target({ElementType.TYPE, ElementType.METHOD}) | ||
@Retention(RetentionPolicy.RUNTIME) | ||
public @interface RetryAnno { | ||
|
||
/** | ||
* 这个服务对应的接口 | ||
*/ | ||
int value() default 1; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
ComponentImpl/src/main/java/com/xiaojinzi/component/error/NotSupportException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.xiaojinzi.component.error; | ||
|
||
public class NotSupportException extends RuntimeException { | ||
|
||
public NotSupportException() { | ||
} | ||
|
||
public NotSupportException(String message) { | ||
super(message); | ||
} | ||
|
||
public NotSupportException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public NotSupportException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
} |
20 changes: 20 additions & 0 deletions
20
ComponentImpl/src/main/java/com/xiaojinzi/component/error/RunTimeTimeoutException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package com.xiaojinzi.component.error; | ||
|
||
public class RunTimeTimeoutException extends RuntimeException { | ||
|
||
public RunTimeTimeoutException() { | ||
} | ||
|
||
public RunTimeTimeoutException(String message) { | ||
super(message); | ||
} | ||
|
||
public RunTimeTimeoutException(String message, Throwable cause) { | ||
super(message, cause); | ||
} | ||
|
||
public RunTimeTimeoutException(Throwable cause) { | ||
super(cause); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.