public abstract class EzyRequestFrame extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected long |
endTime |
protected long |
id |
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 volatile int requests
protected final long endTime
protected final long startTime
protected final int maxRequests
protected final long id
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 © 2021 Young Monkeys. All rights reserved.