public class TransactionalRequest extends Object implements Route.Decorator
| Constructor and Description |
|---|
TransactionalRequest()
Creates a transactional request.
|
TransactionalRequest(String name)
Creates a transactional request.
|
| Modifier and Type | Method and Description |
|---|---|
Route.Handler |
apply(Route.Handler next) |
TransactionalRequest |
enabledByDefault(boolean enabledByDefault)
Sets whether all routes in the scope of this decorator instance
should be transactional or not (
true by default). |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitthen, thensetRoutepublic TransactionalRequest(@Nonnull String name)
name - Ebean service name.public TransactionalRequest()
public TransactionalRequest enabledByDefault(boolean enabledByDefault)
true by default).
You can use the Transactional annotation to override this
option on a single route.
enabledByDefault - whether routes should be transactional by defaultTransactional@Nonnull public Route.Handler apply(@Nonnull Route.Handler next)
apply in interface Route.DecoratorCopyright © 2020. All rights reserved.