Skip to content

Commit

Permalink
update javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
duanlinlin committed Jul 16, 2024
1 parent 3af84c7 commit d07b935
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,19 @@ public interface MessageListenerExecutor {

/**
* select a thread by message to execute the runnable!
*
* <p>
* Suggestions:
* <p>
* 1. The message listener task will be submitted to this executor for execution,
* so the implementations of this interface should carefully consider execution
* order if sequential consumption is required.
* </p>
* <p>
* 2. The users should release resources(e.g. threads) of the executor after closing
* the consumer to avoid leaks.
* </p>
* @param message the message
* @param runnable the runnable to execute
* @param runnable the runnable to execute, that is, the message listener task
*/
void execute(Message<?> message, Runnable runnable);
}

0 comments on commit d07b935

Please sign in to comment.