T
- external request context typepublic interface ExternalRequestScope<T> extends AutoCloseable
An implementation must be registered via META-INF/services mechanism. Only one implementation will be utilized during runtime. If more than one implementation is registered, no one will get used and a warning log message will be written out.
Modifier and Type | Method and Description |
---|---|
void |
close()
Finish the actual request.
|
ExternalRequestContext<T> |
open()
Invoked when a new request gets started.
|
void |
resume(ExternalRequestContext<T> c)
Resume request associated with provided context.
|
void |
suspend(ExternalRequestContext<T> c)
Suspend request associated with provided context.
|
ExternalRequestContext<T> open()
void suspend(ExternalRequestContext<T> c)
c
- external request contextvoid resume(ExternalRequestContext<T> c)
c
- external request contextvoid close()
close
in interface AutoCloseable
Copyright © 2007-2015, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.