Codota Logo
IndexRegistry.forCompositeInterest
Code IndexAdd Codota to your IDE (free)

How to use
forCompositeInterest
method
in
com.netflix.eureka2.interests.IndexRegistry

Best Java code snippets using com.netflix.eureka2.interests.IndexRegistry.forCompositeInterest (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: com.netflix.eureka/eureka2-client

@Override
public Observable<ChangeNotification<T>> forCompositeInterest(MultipleInterests<T> interest,
                               SourcedEurekaRegistry<T> registry) {
  return mergeWithBatchRegistryHints(interest, delegateRegistry.forCompositeInterest(interest, registry));
}
origin: com.netflix.eureka2/eureka-write-server

/**
 * Return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 * @param interest
 * @return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 */
@Override
public Observable<ChangeNotification<InstanceInfo>> forInterest(Interest<InstanceInfo> interest) {
  try {
    // TODO: this method can be run concurrently from different channels, unless we run everything on single server event loop.
    // It is possible that the same instance info will be both in snapshot and paused notification queue.
    notificationSubject.pause(); // Pause notifications till we get a snapshot of current registry (registry.values())
    if (interest instanceof MultipleInterests) {
      return indexRegistry.forCompositeInterest((MultipleInterests) interest, this);
    } else {
      return indexRegistry.forInterest(interest, notificationSubject,
          new InstanceInfoInitStateHolder(getSnapshotForInterest(interest)));
    }
  } finally {
    notificationSubject.resume();
  }
}
origin: com.netflix.eureka2/eureka-client

/**
 * Return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 * @param interest
 * @return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 */
@Override
public Observable<ChangeNotification<InstanceInfo>> forInterest(Interest<InstanceInfo> interest) {
  try {
    // TODO: this method can be run concurrently from different channels, unless we run everything on single server event loop.
    notificationSubject.pause(); // Pause notifications till we get a snapshot of current registry (registry.values())
    if (interest instanceof MultipleInterests) {
      return indexRegistry.forCompositeInterest((MultipleInterests) interest, this);
    } else {
      return indexRegistry.forInterest(interest, notificationSubject,
          new InstanceInfoInitStateHolder(getSnapshotForInterest(interest)));
    }
  } finally {
    notificationSubject.resume();
  }
}
origin: com.netflix.eureka/eureka2-core

/**
 * Return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 * @param interest
 * @return an observable of all matching InstanceInfo for the current registry snapshot,
 * as {@link ChangeNotification}s
 */
@Override
public Observable<ChangeNotification<InstanceInfo>> forInterest(Interest<InstanceInfo> interest) {
  try {
    // TODO: this method can be run concurrently from different channels, unless we run everything on single server event loop.
    // It is possible that the same instanceinfo will be both in snapshot and paused notification queue.
    pauseableSubject.pause(); // Pause notifications till we get a snapshot of current registry (registry.values())
    if (interest instanceof MultipleInterests) {
      return indexRegistry.forCompositeInterest((MultipleInterests) interest, this);
    } else {
      return indexRegistry.forInterest(interest, pauseableSubject,
          new InstanceInfoInitStateHolder(getSnapshotForInterest(interest), interest));
    }
  } finally {
    pauseableSubject.resume();
  }
}
com.netflix.eureka2.interestsIndexRegistryforCompositeInterest

Popular methods of IndexRegistry

  • forInterest
  • shutdown

Popular in Java

  • Creating JSON documents from java classes using gson
  • getSharedPreferences (Context)
  • requestLocationUpdates (LocationManager)
  • getApplicationContext (Context)
  • FileInputStream (java.io)
    A FileInputStream obtains input bytes from a file in a file system. What files are available depends
  • PrintStream (java.io)
    A PrintStream adds functionality to another output stream, namely the ability to print representatio
  • ArrayList (java.util)
    Resizable-array implementation of the List interface. Implements all optional list operations, and p
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • TreeMap (java.util)
    A Red-Black tree based NavigableMap implementation. The map is sorted according to the Comparable of
  • Reflections (org.reflections)
    Reflections one-stop-shop objectReflections scans your classpath, indexes the metadata, allows you t
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now