File tree 2 files changed +3
-6
lines changed
reactor/src/main/java/com/iluwatar/reactor/framework
2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,8 @@ public NioReactor(Dispatcher dispatcher) throws IOException {
84
84
85
85
/**
86
86
* Starts the reactor event loop in a new thread.
87
- *
88
- * @throws IOException
89
- * if any I/O error occurs.
90
87
*/
91
- public void start () throws IOException {
88
+ public void start () {
92
89
reactorMain .execute (() -> {
93
90
try {
94
91
LOGGER .info ("Reactor started, waiting for events..." );
Original file line number Diff line number Diff line change @@ -98,9 +98,9 @@ public ByteBuffer read(SelectionKey key) throws IOException {
98
98
*/
99
99
@ Override
100
100
public void bind () throws IOException {
101
- (( ServerSocketChannel ) getJavaChannel () ).socket ().bind (
101
+ getJavaChannel ().socket ().bind (
102
102
new InetSocketAddress (InetAddress .getLocalHost (), port ));
103
- (( ServerSocketChannel ) getJavaChannel () ).configureBlocking (false );
103
+ getJavaChannel ().configureBlocking (false );
104
104
LOGGER .info ("Bound TCP socket at port: {}" , port );
105
105
}
106
106
You can’t perform that action at this time.
0 commit comments