Skip to content

Commit 42a5b27

Browse files
committed
Allow to specify the number of posts in command
1 parent 02b00f0 commit 42a5b27

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/tinystruct/examples/talk.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,13 @@ public String version() {
154154

155155
/**
156156
* This is a testing. It can be executed with the command:
157-
* $ bin/dispatcher --import-applications=tinystruct.examples.talk talk/testing
157+
* $ bin/dispatcher --import-applications=tinystruct.examples.talk talk/testing/100
158158
*
159-
* @return boolean
159+
* @param n
160+
* @return
160161
* @throws ApplicationException
161162
*/
162-
public boolean testing() throws ApplicationException {
163+
public boolean testing(final int n) throws ApplicationException {
163164
this.meetings.put("[M001]", new ConcurrentLinkedQueue<Builder>());
164165
this.list.put("{A}", new ConcurrentLinkedQueue<Builder>());
165166
this.list.put("{B}", new ConcurrentLinkedQueue<Builder>());
@@ -169,7 +170,6 @@ public boolean testing() throws ApplicationException {
169170
sess.add("{B}");
170171
this.sessions.put("[M001]", sess);
171172

172-
final int n = 1000;
173173
new Thread(new Runnable(){
174174
@Override
175175
public void run() {

0 commit comments

Comments
 (0)