-
Notifications
You must be signed in to change notification settings - Fork 140
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Removed Promise.class check and got tests to run
- Loading branch information
1 parent
18ea7b0
commit 95df4fe
Showing
9 changed files
with
40 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
qbit/vertx/src/test/java/io/advantageous/qbit/vertx/PerfTestHello.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package io.advantageous.qbit.vertx; | ||
|
||
import io.advantageous.qbit.annotation.RequestMapping; | ||
import io.advantageous.qbit.annotation.http.GET; | ||
import io.advantageous.qbit.server.EndpointServerBuilder; | ||
|
||
@RequestMapping("/") | ||
public class PerfTestHello { | ||
|
||
|
||
@GET | ||
public String hello() { | ||
return "hello"; | ||
} | ||
|
||
public static void main(final String... args) { | ||
final EndpointServerBuilder endpointServerBuilder = EndpointServerBuilder.endpointServerBuilder(); | ||
endpointServerBuilder.getRequestQueueBuilder().setBatchSize(1); | ||
endpointServerBuilder.getResponseQueueBuilder().setBatchSize(1); | ||
|
||
endpointServerBuilder.setFlushResponseInterval(10) | ||
.setUri("/").setPort(9666) | ||
.addService(new PerfTestHello()).build().startServer(); | ||
|
||
} | ||
} |