Skip to content
Snippets Groups Projects
Commit 2daf2bf9 authored by akwizgran's avatar akwizgran
Browse files

Documented the return value of incrementConnectionCounter().

parent 12d28433
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
......@@ -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.
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment