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

com.netflix.discovery.DiscoveryEvent Maven / Gradle / Ivy

There is a newer version: 0.40.13
Show newest version
/**
 * 
 */
package com.netflix.discovery;

/**
 * Class to be extended by all discovery events. Abstract as it
 * doesn't make sense for generic events to be published directly.
 */
public abstract class DiscoveryEvent implements EurekaEvent {
    
    // System time when the event happened
    private final long timestamp;
    
    protected DiscoveryEvent() {
        this.timestamp = System.currentTimeMillis();
    }
    
    /**
     * @return Return the system time in milliseconds when the event happened.
     */
    public final long getTimestamp() {
        return this.timestamp;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy