Class OperationManager
- java.lang.Object
-
- com.microsoft.azure.toolkit.lib.common.operation.OperationManager
-
public class OperationManager extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classOperationManager.SingletonHolder
-
Field Summary
Fields Modifier and Type Field Description private Set<OperationListener>listeners
-
Constructor Summary
Constructors Modifier Constructor Description privateOperationManager()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListener(OperationListener listener)(package private) voidfireAfterReturning(Operation operation)(package private) voidfireAfterThrowing(Throwable e, Operation operation)(package private) voidfireBeforeEnter(Operation operation)static OperationManagergetInstance()voidremoveListener(OperationListener listener)
-
-
-
Field Detail
-
listeners
private final Set<OperationListener> listeners
-
-
Method Detail
-
getInstance
public static OperationManager getInstance()
-
addListener
public void addListener(OperationListener listener)
-
removeListener
public void removeListener(OperationListener listener)
-
fireBeforeEnter
void fireBeforeEnter(Operation operation)
-
fireAfterReturning
void fireAfterReturning(Operation operation)
-
-