| Modifier and Type | Field and Description |
|---|---|
| private final HttpDestination | |
| private HttpExchange | |
| private final AutoLock | |
| private static final Logger |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public boolean | Returns: true if the association was successful, false otherwisethe exchange to associate exchange)Associates the given |
| public void | |
| public boolean | Returns: true if the exchange was disassociated, false otherwisethe current exchange that must be already completed exchange)Disassociates the exchange from this channel. |
| public void | |
| public Result | |
| protected abstract Connection | |
| public long | getExpireNanoTime()
Implements org. Returns the expiration time in nanoseconds. |
| public HttpDestination | |
| public HttpExchange | Returns: theHttpExchange currently associated with this channel, possibly null.Returns the |
| protected abstract HttpReceiver | |
| protected abstract HttpSender | |
| public void | |
| public abstract void | |
| public void | |
| public abstract void | |
| public String |
| _destination | back to summary |
|---|---|
| private final HttpDestination _destination | |
| _exchange | back to summary |
|---|---|
| private HttpExchange _exchange | |
| _lock | back to summary |
|---|---|
| private final AutoLock _lock | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| HttpChannel | back to summary |
|---|---|
| protected HttpChannel(HttpDestination destination) | |
| abort | back to summary |
|---|---|
| public void abort(HttpExchange exchange, Throwable requestFailure, Throwable responseFailure, Promise<Boolean> promise) | |
| abortResponse | back to summary |
|---|---|
| public void abortResponse(HttpExchange exchange, Throwable failure, Promise<Boolean> promise) | |
| associate | back to summary |
|---|---|
| public boolean associate(HttpExchange exchange) Associates the given If the association is successful, the exchange can be sent. Otherwise, the channel must be disposed because whoever terminated the exchange did not do it - it did not have the channel yet.
| |
| destroy | back to summary |
|---|---|
| public void destroy() | |
| disassociate | back to summary |
|---|---|
| public boolean disassociate(HttpExchange exchange) Disassociates the exchange from this channel.
| |
| exchangeTerminated | back to summary |
|---|---|
| public void exchangeTerminated(HttpExchange exchange, Result result) | |
| exchangeTerminating | back to summary |
|---|---|
| public Result exchangeTerminating(HttpExchange exchange, Result result) | |
| getConnection | back to summary |
|---|---|
| protected abstract Connection getConnection() | |
| getExpireNanoTime | back to summary |
|---|---|
| public long getExpireNanoTime() Implements org. Doc from org. Returns the expiration time in nanoseconds. The value to return must be calculated taking into account the current nanoTime, for example: expireNanoTime = NanoTime.now() + timeoutNanos
Returning
| |
| getHttpDestination | back to summary |
|---|---|
| public HttpDestination getHttpDestination() | |
| getHttpExchange | back to summary |
|---|---|
| public HttpExchange getHttpExchange() Returns the The exchange may be completed and disassociated concurrently, so callers must act atomically on the exchange.
| |
| getHttpReceiver | back to summary |
|---|---|
| protected abstract HttpReceiver getHttpReceiver() | |
| getHttpSender | back to summary |
|---|---|
| protected abstract HttpSender getHttpSender() | |
| proceed | back to summary |
|---|---|
| public void proceed(HttpExchange exchange, Throwable failure) | |
| release | back to summary |
|---|---|
| public abstract void release() | |
| send | back to summary |
|---|---|
| public void send() | |
| send | back to summary |
|---|---|
| public abstract void send(HttpExchange exchange) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |