Package de.hybris.platform.governor
Interface ExecutionContext
-
- All Superinterfaces:
java.lang.AutoCloseable,java.io.Closeable
@Beta public interface ExecutionContext extends java.io.CloseableRepresents the execution of a given operation. Must be closed at the end of the operation. Usual usage:
PLEASE NOTE: This API is in the beta stage, it can be changed or even removed in a future release. Compatibility with other features is not guaranteed.try (ExecutionContext ctx = resourceGovernor.beginExecution(operation)) { //some code } catch (ExecutionRejectedException e) { //no capacity }
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Mark the operation as done.
-