Package io.deephaven.enterprise.test
Class CapturingUpdateGraph
java.lang.Object
io.deephaven.enterprise.test.CapturingUpdateGraph
- All Implemented Interfaces:
LogOutputAppendable
,NotificationQueue
,NotificationQueue.Dependency
,UpdateGraph
,UpdateSourceRegistrar
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.deephaven.engine.updategraph.NotificationQueue
NotificationQueue.Dependency, NotificationQueue.ErrorNotification, NotificationQueue.Notification
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCapturingUpdateGraph
(@NotNull io.deephaven.engine.testutil.ControlledUpdateGraph delegate) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNotification
(@NotNull NotificationQueue.Notification notification) void
addNotifications
(@NotNull Collection<? extends NotificationQueue.Notification> notifications) void
clock()
boolean
getName()
boolean
maybeAddNotification
(@NotNull NotificationQueue.Notification notification, long deliveryStep) int
void
void
removeSource
(@NotNull Runnable updateSource) void
<T extends Exception>
voidrunWithinUnitTestCycle
(@NotNull ThrowingRunnable<T> runnable) <T extends Exception>
voidrunWithinUnitTestCycle
(@NotNull ThrowingRunnable<T> runnable, boolean satisfied) boolean
satisfied
(long step) boolean
boolean
setSerialTableOperationsSafe
(boolean newValue) void
stop()
boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.deephaven.engine.updategraph.NotificationQueue.Dependency
getUpdateGraph
Methods inherited from interface io.deephaven.engine.updategraph.UpdateGraph
allowSerialTableOperations, allowSerialTableOperations, cast, checkInitiateSerialTableOperation, requestSignal
Methods inherited from interface io.deephaven.engine.updategraph.UpdateSourceRegistrar
removeSources
-
Field Details
-
context
-
-
Constructor Details
-
CapturingUpdateGraph
public CapturingUpdateGraph(@NotNull @NotNull io.deephaven.engine.testutil.ControlledUpdateGraph delegate)
-
-
Method Details
-
addSource
- Specified by:
addSource
in interfaceUpdateSourceRegistrar
-
refreshSources
public void refreshSources() -
append
- Specified by:
append
in interfaceLogOutputAppendable
-
satisfied
public boolean satisfied(long step) - Specified by:
satisfied
in interfaceNotificationQueue.Dependency
-
getUpdateGraph
- Specified by:
getUpdateGraph
in interfaceNotificationQueue.Dependency
-
addNotification
- Specified by:
addNotification
in interfaceNotificationQueue
-
addNotifications
public void addNotifications(@NotNull @NotNull Collection<? extends NotificationQueue.Notification> notifications) - Specified by:
addNotifications
in interfaceNotificationQueue
-
maybeAddNotification
public boolean maybeAddNotification(@NotNull @NotNull NotificationQueue.Notification notification, long deliveryStep) - Specified by:
maybeAddNotification
in interfaceNotificationQueue
-
getName
- Specified by:
getName
in interfaceUpdateGraph
-
exclusiveLock
- Specified by:
exclusiveLock
in interfaceUpdateGraph
-
clock
- Specified by:
clock
in interfaceUpdateGraph
-
parallelismFactor
public int parallelismFactor()- Specified by:
parallelismFactor
in interfaceUpdateGraph
-
logDependencies
- Specified by:
logDependencies
in interfaceUpdateGraph
-
currentThreadProcessesUpdates
public boolean currentThreadProcessesUpdates()- Specified by:
currentThreadProcessesUpdates
in interfaceUpdateGraph
-
serialTableOperationsSafe
public boolean serialTableOperationsSafe()- Specified by:
serialTableOperationsSafe
in interfaceUpdateGraph
-
setSerialTableOperationsSafe
public boolean setSerialTableOperationsSafe(boolean newValue) - Specified by:
setSerialTableOperationsSafe
in interfaceUpdateGraph
-
supportsRefreshing
public boolean supportsRefreshing()- Specified by:
supportsRefreshing
in interfaceUpdateGraph
-
requestRefresh
public void requestRefresh()- Specified by:
requestRefresh
in interfaceUpdateGraph
- Specified by:
requestRefresh
in interfaceUpdateSourceRegistrar
-
removeSource
- Specified by:
removeSource
in interfaceUpdateSourceRegistrar
-
runWithinUnitTestCycle
public <T extends Exception> void runWithinUnitTestCycle(@NotNull @NotNull ThrowingRunnable<T> runnable) throws T - Throws:
T extends Exception
-
runWithinUnitTestCycle
public <T extends Exception> void runWithinUnitTestCycle(@NotNull @NotNull ThrowingRunnable<T> runnable, boolean satisfied) throws T - Throws:
T extends Exception
-
stop
public void stop()- Specified by:
stop
in interfaceUpdateGraph
-