Top Description Inners Methods
io.undertow.server

public Interface ExchangeCompletionListener

Known Direct Implementers
io.undertow.server.handlers.GracefulShutdownHandler.GracefulShutdownListener, io.undertow.server.handlers.JDBCLogHandler.JDBCLogCompletionListener, io.undertow.server.handlers.LearningPushHandler.PushCompletionListener, io.undertow.server.handlers.accesslog.AccessLogHandler.AccessLogCompletionListener, io.undertow.server.session.SessionAttachmentHandler.UpdateLastAccessTimeListener, io.undertow.server.Connectors.BufferedRequestDataCleanupListener

Listener interface for events that are run at the completion of a request/response cycle (i.e. when the request has been completely read, and the response has been fully written). At this point it is too late to modify the exchange further. Implementations are required invoke NextListener#proceed() to allow other listeners to release resources, even in failure scenarios. This chain allows transfer of request ownership between listeners in order to complete using non-blocking mechanisms, and must not be used to conditionally proceed. Completion listeners are invoked in reverse order.
Author
Stuart Douglas

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static interface

Method Summary

Modifier and TypeMethod and Description
public void

Method Detail

exchangeEventback to summary
public void exchangeEvent(final HttpServerExchange exchange, final ExchangeCompletionListener.NextListener nextListener)
io.undertow.server back to summary

public Interface ExchangeCompletionListener.NextListener

Known Direct Implementers
io.undertow.server.HttpServerExchange.ExchangeCompleteNextListener

Method Summary

Modifier and TypeMethod and Description
public void
proceed()

Invokes the next listener.

Method Detail

proceedback to summary
public void proceed()

Invokes the next listener. This must be executed by every ExchangeCompletionListener implementation, and may be invoked from a different thread as a callback. Failure to proceed will cause resource leaks, and potentially cause requests to hang.