-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config for sending force ping request (#71)
* Add config for sending force ping request * Fix unit tests
- Loading branch information
1 parent
e3fe343
commit 7ae7f5b
Showing
17 changed files
with
152 additions
and
24 deletions.
There are no files selected for viewing
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
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 |
---|---|---|
@@ -1,8 +1,21 @@ | ||
public final class com/gojek/timer/pingsender/TimerPingSenderConfig { | ||
public fun <init> ()V | ||
public fun <init> (Z)V | ||
public synthetic fun <init> (ZILkotlin/jvm/internal/DefaultConstructorMarker;)V | ||
public final fun component1 ()Z | ||
public final fun copy (Z)Lcom/gojek/timer/pingsender/TimerPingSenderConfig; | ||
public static synthetic fun copy$default (Lcom/gojek/timer/pingsender/TimerPingSenderConfig;ZILjava/lang/Object;)Lcom/gojek/timer/pingsender/TimerPingSenderConfig; | ||
public fun equals (Ljava/lang/Object;)Z | ||
public final fun getSendForcePing ()Z | ||
public fun hashCode ()I | ||
public fun toString ()Ljava/lang/String; | ||
} | ||
|
||
public final class com/gojek/timer/pingsender/TimerPingSenderFactory { | ||
public static final field Companion Lcom/gojek/timer/pingsender/TimerPingSenderFactory$Companion; | ||
} | ||
|
||
public final class com/gojek/timer/pingsender/TimerPingSenderFactory$Companion { | ||
public final fun create ()Lcom/gojek/mqtt/pingsender/MqttPingSender; | ||
public final fun create (Lcom/gojek/timer/pingsender/TimerPingSenderConfig;)Lcom/gojek/mqtt/pingsender/MqttPingSender; | ||
} | ||
|
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
5 changes: 5 additions & 0 deletions
5
...sender/timer-pingsender/src/main/java/com/gojek/timer/pingsender/TimerPingSenderConfig.kt
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,5 @@ | ||
package com.gojek.timer.pingsender | ||
|
||
data class TimerPingSenderConfig( | ||
val sendForcePing: Boolean = false | ||
) |
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
10 changes: 6 additions & 4 deletions
10
pingsender/workmanager-2.6.0-pingsender/api/workmanager-2.6.0-pingsender.api
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
3 changes: 2 additions & 1 deletion
3
...-pingsender/src/main/java/com/gojek/workmanager/pingsender/WorkManagerPingSenderConfig.kt
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
package com.gojek.workmanager.pingsender | ||
|
||
data class WorkManagerPingSenderConfig( | ||
val timeoutSeconds: Long = DEFAULT_PING_TIMEOUT_SECS | ||
val timeoutSeconds: Long = DEFAULT_PING_TIMEOUT_SECS, | ||
val sendForcePing: Boolean = false | ||
) | ||
|
||
internal const val DEFAULT_PING_TIMEOUT_SECS = 30L |
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
10 changes: 6 additions & 4 deletions
10
pingsender/workmanager-pingsender/api/workmanager-pingsender.api
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
3 changes: 2 additions & 1 deletion
3
...-pingsender/src/main/java/com/gojek/workmanager/pingsender/WorkManagerPingSenderConfig.kt
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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
package com.gojek.workmanager.pingsender | ||
|
||
data class WorkManagerPingSenderConfig( | ||
val timeoutSeconds: Long = DEFAULT_PING_TIMEOUT_SECS | ||
val timeoutSeconds: Long = DEFAULT_PING_TIMEOUT_SECS, | ||
val sendForcePing: Boolean = false | ||
) | ||
|
||
internal const val DEFAULT_PING_TIMEOUT_SECS = 30L |
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