Tabnine Logo
IndexRegistry.forCompositeInterest
Code IndexAdd Tabnine 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)

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
  • getExternalFilesDir (Context)
  • findViewById (Activity)
  • setRequestProperty (URLConnection)
  • Rectangle (java.awt)
    A Rectangle specifies an area in a coordinate space that is enclosed by the Rectangle object's top-
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • LinkedHashMap (java.util)
    LinkedHashMap is an implementation of Map that guarantees iteration order. All optional operations a
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • Top 12 Jupyter Notebook extensions
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