Top Description Methods
io.undertow.server.handlers.proxy

public Interface ProxyCallback<T>

Known Direct Implementers
io.undertow.server.handlers.proxy.ProxyHandler.ProxyClientHandler
Imports
io.undertow.server.HttpServerExchange

Yet another callback class, this one used by the proxy handler
Author
Stuart Douglas

Method Summary

Modifier and TypeMethod and Description
public void
completed(final HttpServerExchange exchange, T result)

public void
couldNotResolveBackend(final HttpServerExchange
the http server exchange
exchange
)

Callback if no backend server could be found.

public void
failed(final HttpServerExchange
the http server exchange
exchange
)

Callback if establishing the connection to a backend server fails.

public void
queuedRequestFailed(HttpServerExchange
The exchange
exchange
)

This is invoked when the target connection pool transitions to problem status.

Method Detail

completedback to summary
public void completed(final HttpServerExchange exchange, T result)
couldNotResolveBackendback to summary
public void couldNotResolveBackend(final HttpServerExchange exchange)

Callback if no backend server could be found.

Parameters
exchange:HttpServerExchange

the http server exchange

failedback to summary
public void failed(final HttpServerExchange exchange)

Callback if establishing the connection to a backend server fails.

Parameters
exchange:HttpServerExchange

the http server exchange

queuedRequestFailedback to summary
public void queuedRequestFailed(HttpServerExchange exchange)

This is invoked when the target connection pool transitions to problem status. It will be called once for each queued request that has not yet been allocated a connection. The manager can redistribute these requests to other hosts, or can end the exchange with an error status.

Parameters
exchange:HttpServerExchange

The exchange