-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add realtime expiring handshakes. #1165
Conversation
fb67b6b
to
e3aa3d3
Compare
* @see #handshakeFailed(Throwable) | ||
* @see #isRemovingConnection() | ||
*/ | ||
public final void handshakeAborted(Throwable cause) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand the benefits of this final
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The api-changes.json contains:
"justification": "keep API consistent with other similar functions"
FMPOV, similar functions are:
handshakeCompleted or handshakeFailed(Throwable cause), both are already final.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without API break in mind :
I don't understand the benefits of all those final
keyword. Most of the time I really don't like the use of final
for methods or classes.
With API break in mind :
Even if I agree that finalMethodAddedToNonFinalClass
is a questionable break, I would not break just for this, mainly because I find final
keyword for method a bad idea most of the time.
e3aa3d3
to
ccbc2fc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No objection
@@ -176,6 +177,12 @@ | |||
/** Realtime nanoseconds of last sending a flight */ | |||
private long flightSendNanos; | |||
|
|||
/** Realtime nanoseconds when handshakes get's expired. */ | |||
private long nonosExpireTime; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo : nonos => nanos
/** | ||
* Test, if handshake is expired according nano realtime. | ||
* | ||
* Used to mitigate deep sleep during handhsakes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe ? (personally I didn't know deep sleep before those PRs)
Used to mitigate **Android** deep sleep during handhsakes
* @see #handshakeFailed(Throwable) | ||
* @see #isRemovingConnection() | ||
*/ | ||
public final void handshakeAborted(Throwable cause) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without API break in mind :
I don't understand the benefits of all those final
keyword. Most of the time I really don't like the use of final
for methods or classes.
With API break in mind :
Even if I agree that finalMethodAddedToNonFinalClass
is a questionable break, I would not break just for this, mainly because I find final
keyword for method a bad idea most of the time.
Support android/os deep sleep during handshake. Signed-off-by: Achim Kraus <achim.kraus@bosch-si.com>
ccbc2fc
to
2c4e777
Compare
Support android/os deep sleep during handshake.
Signed-off-by: Achim Kraus achim.kraus@bosch-si.com