public class TransactionCleanupListener extends Object implements RequestListener
TransactionCleanupListener looks for datastore transactions that are still active when
request processing is finished. The filter attempts to roll back any transactions that are found,
and swallows any exceptions that are thrown while trying to perform roll backs. This ensures that
any problems we encounter while trying to perform roll backs do not have any impact on the result
returned the user.| Constructor and Description |
|---|
TransactionCleanupListener(ClassLoader loader) |
| Modifier and Type | Method and Description |
|---|---|
void |
requestComplete(org.eclipse.jetty.webapp.WebAppContext context,
org.eclipse.jetty.server.Request request)
Called when a request exits the AppEngine context for the last time.
|
void |
requestReceived(org.eclipse.jetty.webapp.WebAppContext context,
org.eclipse.jetty.server.Request request)
Called when a new request is received and first dispatched to the AppEngine context.
|
public TransactionCleanupListener(ClassLoader loader)
public void requestReceived(org.eclipse.jetty.webapp.WebAppContext context,
org.eclipse.jetty.server.Request request)
RequestListenerrequestReceived in interface RequestListenercontext - The jetty context of the requestrequest - The jetty request object.public void requestComplete(org.eclipse.jetty.webapp.WebAppContext context,
org.eclipse.jetty.server.Request request)
RequestListenerrequestComplete in interface RequestListenercontext - The jetty context of the requestrequest - The jetty request object.Copyright © 2022. All rights reserved.