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

com.netflix.astyanax.recipes.queue.triggers.AbstractTrigger Maven / Gradle / Ivy

There is a newer version: 3.10.2
Show newest version
package com.netflix.astyanax.recipes.queue.triggers;


public abstract class AbstractTrigger implements Trigger {
    private long triggerTime    = 0;   // In milliseconds
    private long executeCount   = 0;
    
    @Override
    public long getTriggerTime() {
        return triggerTime;
    }
    
    public long getExecutionCount() {
        return executeCount;
    }
    
    public void setTriggerTime(long triggerTime) {
        this.triggerTime = triggerTime;
    }
    
    public void setExecutionCount(long executeCount) {
        this.executeCount = executeCount;
    }

    @Override
    public String toString() {
        return "AbstractTrigger [triggerTime=" + triggerTime + ", executeCount=" + executeCount + "]";
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy