Browse Source

minor reactor server impl to fulfill core introspection

pull/1111/head
Stephane Maldini 9 years ago
parent
commit
fbb0c702c9
  1. 23
      spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/ReactorHttpServer.java

23
spring-web-reactive/src/main/java/org/springframework/http/server/reactive/boot/ReactorHttpServer.java

@ -16,6 +16,7 @@ @@ -16,6 +16,7 @@
package org.springframework.http.server.reactive.boot;
import reactor.core.support.ReactiveState;
import reactor.io.buffer.Buffer;
import reactor.io.net.ReactiveNet;
@ -27,7 +28,7 @@ import org.springframework.http.server.reactive.ReactorHttpHandlerAdapter; @@ -27,7 +28,7 @@ import org.springframework.http.server.reactive.ReactorHttpHandlerAdapter;
* @author Stephane Maldini
*/
public class ReactorHttpServer extends HttpServerSupport
implements InitializingBean, HttpServer {
implements InitializingBean, HttpServer, ReactiveState.FeedbackLoop, ReactiveState.ActiveUpstream {
private ReactorHttpHandlerAdapter reactorHandler;
@ -50,6 +51,26 @@ public class ReactorHttpServer extends HttpServerSupport @@ -50,6 +51,26 @@ public class ReactorHttpServer extends HttpServerSupport
ReactiveNet.httpServer());
}
@Override
public Object delegateInput() {
return reactorServer;
}
@Override
public Object delegateOutput() {
return reactorServer;
}
@Override
public boolean isStarted() {
return running;
}
@Override
public boolean isTerminated() {
return !running;
}
@Override
public void start() {
if (!this.running) {

Loading…
Cancel
Save