Tabnine Logo
EurekaProtocolError.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.netflix.eureka2.protocol.EurekaProtocolError
constructor

Best Java code snippets using com.netflix.eureka2.protocol.EurekaProtocolError.<init> (Showing top 6 results out of 315)

origin: com.netflix.eureka/eureka2-write-server

sendErrorOnTransport(new EurekaProtocolError("Unexpected message " + message));
origin: com.netflix.eureka/eureka2-write-server

protected void dispatchMessageFromClient(final Object message) {
  Observable<?> reply;
  if (message instanceof ReplicationHello) {
    logger.info("Received Hello from {}", ((ReplicationHello) message).getSourceId());
    reply = hello((ReplicationHello) message);
  } else if (message instanceof RegisterCopy) {
    InstanceInfo instanceInfo = ((RegisterCopy) message).getInstanceInfo();
    reply = register(instanceInfo);// No need to subscribe, the register() call does the subscription.
  } else if (message instanceof UnregisterCopy) {
    reply = unregister(((UnregisterCopy) message).getInstanceId());// No need to subscribe, the unregister() call does the subscription.
  } else {
    reply = Observable.error(new EurekaProtocolError("Unexpected message " + message));
  }
  reply.ignoreElements().cast(Void.class).subscribe(new Subscriber<Void>() {
    @Override
    public void onCompleted() {
      // No-op
    }
    @Override
    public void onError(Throwable e) {
      sendErrorOnTransport(e);
    }
    @Override
    public void onNext(Void aVoid) {
      // No-op
    }
  });
}
origin: com.netflix.eureka2/eureka-server

sendErrorOnTransport(new EurekaProtocolError("Unexpected message " + message));
origin: com.netflix.eureka2/eureka-write-server

  @Override
  public void call(Object message) {
    if (message instanceof Register) {
      InstanceInfo instanceInfo = ((Register) message).getInstanceInfo();
      register(instanceInfo);// No need to subscribe, the register() call does the subscription.
    } else if (message instanceof Unregister) {
      unregister();// No need to subscribe, the unregister() call does the subscription.
    } else if (message instanceof Update) {
      InstanceInfo instanceInfo = ((Update) message).getInstanceInfo();
      update(instanceInfo);// No need to subscribe, the update() call does the subscription.
    } else {
      sendErrorOnTransport(new EurekaProtocolError("Unexpected message " + message));
    }
  }
});
origin: com.netflix.eureka/eureka2-server

sendErrorOnTransport(new EurekaProtocolError("Unexpected message " + message));
origin: com.netflix.eureka2/eureka-write-server

protected void dispatchMessageFromClient(final Object message) {
  Observable<?> reply;
  if (message instanceof ReplicationHello) {
    reply = hello((ReplicationHello) message);
  } else if (message instanceof RegisterCopy) {
    InstanceInfo instanceInfo = ((RegisterCopy) message).getInstanceInfo();
    reply = register(instanceInfo);// No need to subscribe, the register() call does the subscription.
  } else if (message instanceof UnregisterCopy) {
    reply = unregister(((UnregisterCopy) message).getInstanceId());// No need to subscribe, the unregister() call does the subscription.
  } else if (message instanceof UpdateCopy) {
    InstanceInfo instanceInfo = ((UpdateCopy) message).getInstanceInfo();
    reply = update(instanceInfo);// No need to subscribe, the update() call does the subscription.
  } else {
    reply = Observable.error(new EurekaProtocolError("Unexpected message " + message));
  }
  reply.ignoreElements().cast(Void.class).subscribe(new Subscriber<Void>() {
    @Override
    public void onCompleted() {
      // No-op
    }
    @Override
    public void onError(Throwable e) {
      sendErrorOnTransport(e);
    }
    @Override
    public void onNext(Void aVoid) {
      // No-op
    }
  });
}
com.netflix.eureka2.protocolEurekaProtocolError<init>

Popular methods of EurekaProtocolError

    Popular in Java

    • Finding current android device location
    • getOriginalFilename (MultipartFile)
      Return the original filename in the client's filesystem.This may contain path information depending
    • getContentResolver (Context)
    • getSupportFragmentManager (FragmentActivity)
    • PrintStream (java.io)
      Fake signature of an existing Java class.
    • HashSet (java.util)
      HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
    • TreeMap (java.util)
      Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
    • Modifier (javassist)
      The Modifier class provides static methods and constants to decode class and member access modifiers
    • JOptionPane (javax.swing)
    • Reflections (org.reflections)
      Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
    • Top 12 Jupyter Notebook Extensions
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

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