HttpClientImpl#registerTimer(TimeoutEvent).
Cancel with HttpClientImpl#cancelTimer(TimeoutEvent).
| Modifier and Type | Field and Description |
|---|---|
| private static final AtomicLong | |
| private final Deadline | |
| private final Duration | |
| private final long |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public int | compareTo(TimeoutEvent other)
Implements java. Compares this object with the specified object for order. |
| public Deadline | |
| public abstract void | |
| public String |
| COUNTER | back to summary |
|---|---|
| private static final AtomicLong COUNTER | |
| deadline | back to summary |
|---|---|
| private final Deadline deadline | |
| duration | back to summary |
|---|---|
| private final Duration duration | |
| id | back to summary |
|---|---|
| private final long id | |
| TimeoutEvent | back to summary |
|---|---|
| pack-priv TimeoutEvent(Duration duration) | |
| compareTo | back to summary |
|---|---|
| public int compareTo(TimeoutEvent other) Implements java. Doc from java. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The implementor must ensure The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| deadline | back to summary |
|---|---|
| public Deadline deadline() | |
| handle | back to summary |
|---|---|
| public abstract void handle() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |