congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
IndexRegistry.forInterest
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: com.netflix.eureka/eureka2-client

@Override
public Observable<ChangeNotification<T>> forInterest(Interest<T> interest,
                           Observable<ChangeNotification<T>> dataSource,
                           InitStateHolder<T> initStateHolder) {
  return mergeWithBatchRegistryHints(interest, delegateRegistry.forInterest(interest, dataSource, initStateHolder));
}
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.interestsIndexRegistryforInterest

Popular methods of IndexRegistry

  • forCompositeInterest
  • shutdown

Popular in Java

  • Running tasks concurrently on multiple threads
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • setContentView (Activity)
  • requestLocationUpdates (LocationManager)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • CodeWhisperer alternatives
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