public abstract class EzyRequestFrame extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected long |
endTime |
protected int |
maxRequests |
protected int |
requests |
protected long |
startTime |
| Constructor and Description |
|---|
EzyRequestFrame(int maxRequests) |
EzyRequestFrame(int maxRequests,
long startTime) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addRequests(long requests) |
protected abstract long |
getExistsTime() |
boolean |
isExpired() |
boolean |
isInvalid() |
abstract EzyRequestFrame |
nextFrame() |
String |
toString() |
protected final long endTime
protected final long startTime
protected final int maxRequests
protected volatile int requests
public EzyRequestFrame(int maxRequests)
public EzyRequestFrame(int maxRequests,
long startTime)
protected abstract long getExistsTime()
public boolean addRequests(long requests)
public boolean isExpired()
public boolean isInvalid()
public abstract EzyRequestFrame nextFrame()
Copyright © 2024 Young Monkeys. All rights reserved.