Tabnine Logo
EurekaHttpServer.connectWebSocketEndpoint
Code IndexAdd Tabnine to your IDE (free)

How to use
connectWebSocketEndpoint
method
in
com.netflix.eureka2.server.http.EurekaHttpServer

Best Java code snippets using com.netflix.eureka2.server.http.EurekaHttpServer.connectWebSocketEndpoint (Showing top 1 results out of 315)

origin: com.netflix.eureka/eureka2-server

@Inject
public HealthConnectionHandler(final EurekaHealthStatusAggregatorImpl aggregatedHealth,
                EurekaHttpServer httpServer) {
  updateObservable = aggregatedHealth.components()
      .flatMap(new Func1<List<HealthStatusProvider<?>>, Observable<HealthStatusUpdate<?>>>() {
        @Override
        public Observable<HealthStatusUpdate<?>> call(List<HealthStatusProvider<?>> healthStatusProviders) {
          List<Observable<HealthStatusUpdate<?>>> updatesObservables = new ArrayList<>();
          for (HealthStatusProvider<?> provider : healthStatusProviders) {
            Observable statusUpdateObservable = provider.healthStatus();
            updatesObservables.add(statusUpdateObservable);
          }
          Observable aggregatedObservable = aggregatedHealth.healthStatus();
          updatesObservables.add(aggregatedObservable);
          return Observable.merge(updatesObservables);
        }
      });
  httpServer.connectWebSocketEndpoint("/health", this);
}
com.netflix.eureka2.server.httpEurekaHttpServerconnectWebSocketEndpoint

Popular methods of EurekaHttpServer

  • connectHttpEndpoint
  • serverPort

Popular in Java

  • Updating database using SQL prepared statement
  • compareTo (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Iterator (java.util)
    An iterator over a sequence of objects, such as a collection.If a collection has been changed since
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Join (org.hibernate.mapping)
  • Best plugins for Eclipse
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now