congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
ServerCodecs
Code IndexAdd Tabnine to your IDE (free)

How to use
ServerCodecs
in
com.netflix.eureka.resources

Best Java code snippets using com.netflix.eureka.resources.ServerCodecs (Showing top 12 results out of 315)

origin: Netflix/eureka

.withClientName(jerseyClientName)
.withUserAgent("Java-EurekaClient-Replication")
.withEncoderWrapper(serverCodecs.getFullJsonCodec())
.withDecoderWrapper(serverCodecs.getFullJsonCodec())
.withConnectionTimeout(config.getPeerNodeConnectTimeoutMs())
.withReadTimeout(config.getPeerNodeReadTimeoutMs())
origin: Netflix/eureka

/**
 * Generate pay load with both JSON and XML formats for all applications.
 */
private String getPayLoad(Key key, Applications apps) {
  EncoderWrapper encoderWrapper = serverCodecs.getEncoder(key.getType(), key.getEurekaAccept());
  String result;
  try {
    result = encoderWrapper.encode(apps);
  } catch (Exception e) {
    logger.error("Failed to encode the payload for all apps", e);
    return "";
  }
  if(logger.isDebugEnabled()) {
    logger.debug("New application cache entry {} with apps hashcode {}", key.toStringCompact(), apps.getAppsHashCode());
  }
  return result;
}
origin: Netflix/eureka

.withClientName(jerseyClientName)
.withUserAgent("Java-EurekaClient-Replication")
.withEncoderWrapper(serverCodecs.getFullJsonCodec())
.withDecoderWrapper(serverCodecs.getFullJsonCodec())
.withConnectionTimeout(config.getPeerNodeConnectTimeoutMs())
.withReadTimeout(config.getPeerNodeReadTimeoutMs())
origin: Netflix/eureka

/**
 * Generate pay load with both JSON and XML formats for a given application.
 */
private String getPayLoad(Key key, Application app) {
  if (app == null) {
    return EMPTY_PAYLOAD;
  }
  EncoderWrapper encoderWrapper = serverCodecs.getEncoder(key.getType(), key.getEurekaAccept());
  try {
    return encoderWrapper.encode(app);
  } catch (Exception e) {
    logger.error("Failed to encode the payload for application {}", app.getName(), e);
    return "";
  }
}
origin: Netflix/eureka

.withEncoderWrapper(serverCodecs.getFullJsonCodec())
.withDecoderWrapper(serverCodecs.getFullJsonCodec())
.withConnectionTimeout(serverConfig.getRemoteRegionConnectTimeoutMs())
.withReadTimeout(serverConfig.getRemoteRegionReadTimeoutMs())
origin: com.netflix.eureka/eureka-core

/**
 * Generate pay load with both JSON and XML formats for all applications.
 */
private String getPayLoad(Key key, Applications apps) {
  EncoderWrapper encoderWrapper = serverCodecs.getEncoder(key.getType(), key.getEurekaAccept());
  String result;
  try {
    result = encoderWrapper.encode(apps);
  } catch (Exception e) {
    logger.error("Failed to encode the payload for all apps", e);
    return "";
  }
  if(logger.isDebugEnabled()) {
    logger.debug("New application cache entry {} with apps hashcode {}", key.toStringCompact(), apps.getAppsHashCode());
  }
  return result;
}
origin: Netflix/eureka

EurekaJerseyClientBuilder clientBuilder = new EurekaJerseyClientBuilder()
    .withUserAgent("Java-EurekaClient-RemoteRegion")
    .withEncoderWrapper(serverCodecs.getFullJsonCodec())
    .withDecoderWrapper(serverCodecs.getFullJsonCodec())
    .withConnectionTimeout(serverConfig.getRemoteRegionConnectTimeoutMs())
    .withReadTimeout(serverConfig.getRemoteRegionReadTimeoutMs())
origin: com.netflix.eureka/eureka-core

/**
 * Generate pay load with both JSON and XML formats for a given application.
 */
private String getPayLoad(Key key, Application app) {
  if (app == null) {
    return EMPTY_PAYLOAD;
  }
  EncoderWrapper encoderWrapper = serverCodecs.getEncoder(key.getType(), key.getEurekaAccept());
  try {
    return encoderWrapper.encode(app);
  } catch (Exception e) {
    logger.error("Failed to encode the payload for application {}", app.getName(), e);
    return "";
  }
}
origin: com.netflix.eureka/eureka-core-jersey2

.withClientName(jerseyClientName)
.withUserAgent("Java-EurekaClient-Replication")
.withEncoderWrapper(serverCodecs.getFullJsonCodec())
.withDecoderWrapper(serverCodecs.getFullJsonCodec())
.withConnectionTimeout(config.getPeerNodeConnectTimeoutMs())
.withReadTimeout(config.getPeerNodeReadTimeoutMs())
origin: com.netflix.eureka/eureka-core

.withClientName(jerseyClientName)
.withUserAgent("Java-EurekaClient-Replication")
.withEncoderWrapper(serverCodecs.getFullJsonCodec())
.withDecoderWrapper(serverCodecs.getFullJsonCodec())
.withConnectionTimeout(config.getPeerNodeConnectTimeoutMs())
.withReadTimeout(config.getPeerNodeReadTimeoutMs())
origin: com.netflix.eureka/eureka-core

.withEncoderWrapper(serverCodecs.getFullJsonCodec())
.withDecoderWrapper(serverCodecs.getFullJsonCodec())
.withConnectionTimeout(serverConfig.getRemoteRegionConnectTimeoutMs())
.withReadTimeout(serverConfig.getRemoteRegionReadTimeoutMs())
origin: com.netflix.eureka/eureka-core

EurekaJerseyClientBuilder clientBuilder = new EurekaJerseyClientBuilder()
    .withUserAgent("Java-EurekaClient-RemoteRegion")
    .withEncoderWrapper(serverCodecs.getFullJsonCodec())
    .withDecoderWrapper(serverCodecs.getFullJsonCodec())
    .withConnectionTimeout(serverConfig.getRemoteRegionConnectTimeoutMs())
    .withReadTimeout(serverConfig.getRemoteRegionReadTimeoutMs())
com.netflix.eureka.resourcesServerCodecs

Most used methods

  • getFullJsonCodec
  • getEncoder

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • putExtra (Intent)
  • Table (com.google.common.collect)
    A collection that associates an ordered pair of keys, called a row key and a column key, with a sing
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top 17 PhpStorm Plugins
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