Skip to content

Commit

Permalink
Updated JavaDoc
Browse files Browse the repository at this point in the history
  • Loading branch information
prat-man committed Nov 16, 2019
1 parent 3f518c1 commit ed2bbd2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/tk/pratanumandal/unique4j/Unique.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public Unique(final String APP_ID, final boolean AUTO_EXIT) {
/**
* Try to obtain lock. If not possible, send data to first instance.
*
* @deprecated Use acquireLock() instead
* @deprecated Use <code>acquireLock()</code> instead
* @throws Unique4jException throws Unique4jException if it is unable to start a server or connect to server
*/
@Deprecated
Expand Down Expand Up @@ -403,7 +403,7 @@ private void lockFile(int port) throws Unique4jException {
/**
* Free the lock if possible. This is only required to be called from the first instance.
*
* @deprecated Use freeLock() instead
* @deprecated Use <code>freeLock()</code> instead
* @throws Unique4jException throws Unique4jException if it is unable to stop the server or release file lock
*/
@Deprecated
Expand Down Expand Up @@ -463,6 +463,7 @@ public boolean freeLock() throws Unique4jException {

/**
* Method used in subsequent instances to send message to first instance.<br>
* It is not recommended to perform blocking (long running) tasks here. Use <code>beforeExit()</code> method instead.<br>
* This method is not synchronized.
*
* @return message sent from subsequent instances
Expand Down

0 comments on commit ed2bbd2

Please sign in to comment.