org.sputnik.ratelimit.domain.CanDoResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-rate-limit Show documentation
Show all versions of java-rate-limit Show documentation
Java library to help to implement rate limits.
The newest version!
package org.sputnik.ratelimit.domain;
import lombok.Builder;
import lombok.Getter;
@Builder
@Getter
public class CanDoResponse {
private final boolean canDo;
private final long waitMillis;
private final Reason reason;
private final long eventsIntents;
public enum Reason {INVALID_REQUEST, TOO_MANY_EVENTS}
}