All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netflix.eureka2.service.RegistrationChannel Maven / Gradle / Ivy

There is a newer version: 2.0.0-DP4
Show newest version
package com.netflix.eureka2.service;

import com.netflix.eureka2.registry.InstanceInfo;
import rx.Observable;

/**
 * A {@link ServiceChannel} implementation for registration.
 *
 *
 * The following are the states of a {@link RegistrationChannel}
 *
 * 
  • Created: Created but no instance registered.
  • Registered: Instance registered.
  • Unregistered: Instance unregistered but channel opened and hence can get into Registered state again.
  • Close: Channel closed. Nothing can be done on this channel anymore.
* * @author Nitesh Kant */ public interface RegistrationChannel extends ServiceChannel { /** * Registers the passed instance with eureka. * * @param instanceInfo The instance definition. * * @return Acknowledgment for the registration. */ Observable register(InstanceInfo instanceInfo); /** * Updates the {@link InstanceInfo} registered with this channel. * * @param newInfo The updated info. * * @return Acknowledgment for this update. */ Observable update(InstanceInfo newInfo); /** * Unregisters the {@link InstanceInfo} associated with this channel. * * @return Acknowledgment for unregistration. */ Observable unregister(); }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy