Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
briar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Julian Dehm
briar
Commits
2daf2bf9
Commit
2daf2bf9
authored
12 years ago
by
akwizgran
Browse files
Options
Downloads
Patches
Plain Diff
Documented the return value of incrementConnectionCounter().
parent
12d28433
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
briar-api/src/net/sf/briar/api/db/DatabaseComponent.java
+2
-1
2 additions, 1 deletion
briar-api/src/net/sf/briar/api/db/DatabaseComponent.java
briar-core/src/net/sf/briar/db/Database.java
+3
-2
3 additions, 2 deletions
briar-core/src/net/sf/briar/db/Database.java
with
5 additions
and
3 deletions
briar-api/src/net/sf/briar/api/db/DatabaseComponent.java
+
2
−
1
View file @
2daf2bf9
...
...
@@ -244,7 +244,8 @@ public interface DatabaseComponent {
/**
* Increments the outgoing connection counter for the given endpoint
* in the given rotation period and returns the old value of the counter.
* in the given rotation period and returns the old value, or -1 if the
* counter does not exist.
*/
long
incrementConnectionCounter
(
ContactId
c
,
TransportId
t
,
long
period
)
throws
DbException
;
...
...
This diff is collapsed.
Click to expand it.
briar-core/src/net/sf/briar/db/Database.java
+
3
−
2
View file @
2daf2bf9
...
...
@@ -577,8 +577,9 @@ interface Database<T> {
boolean
hasSendableMessages
(
T
txn
,
ContactId
c
)
throws
DbException
;
/**
* Increments the outgoing connection counter for the given contact
* transport in the given rotation period and returns the old value;
* Increments the outgoing connection counter for the given endpoint
* in the given rotation period and returns the old value, or -1 if the
* counter does not exist.
* <p>
* Locking: window write.
*/
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment