Package com.illumon.iris.db.tables.live
Class NullIndexUpdateNotification
java.lang.Object
com.illumon.iris.db.v2.utils.AbstractNotification
com.illumon.iris.db.v2.utils.AbstractIndexUpdateNotification
com.illumon.iris.db.tables.live.NullIndexUpdateNotification
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable,NotificationQueue.IndexUpdateNotification,NotificationQueue.Notification,IntrusiveDoublyLinkedNode<NotificationQueue.Notification>,Runnable
This is a notification that does not actually notify anything.
It is useful for the
SwapListener to have the ability to create a notification
for its parent before there is anything to notify.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.illumon.util.datastructures.linked.IntrusiveDoublyLinkedNode
IntrusiveDoublyLinkedNode.Adapter<NODE_TYPE extends IntrusiveDoublyLinkedNode<NODE_TYPE>>, IntrusiveDoublyLinkedNode.Impl<NODE_TYPE extends IntrusiveDoublyLinkedNode.Impl<NODE_TYPE>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fishlib.base.log.LogOutputappend(com.fishlib.base.log.LogOutput logOutput) booleancanExecute(long step) Can this notification be executed? That is, are all of it's dependencies satisfied.booleanTerminal notifications guarantee that they will not queue additional notifications or mutate data structures that should result in additional notifications.final voidrun()Methods inherited from class com.illumon.iris.db.v2.utils.AbstractNotification
getNext, getPrev, mustExecuteWithLtmLock, setNext, setPrev, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.illumon.util.datastructures.linked.IntrusiveDoublyLinkedNode
getNext, getPrev, setNext, setPrevMethods inherited from interface com.illumon.iris.db.tables.live.NotificationQueue.Notification
mustExecuteWithLtmLock
-
Constructor Details
-
NullIndexUpdateNotification
public NullIndexUpdateNotification()
-
-
Method Details
-
isTerminal
public boolean isTerminal()Description copied from interface:NotificationQueue.NotificationTerminal notifications guarantee that they will not queue additional notifications or mutate data structures that should result in additional notifications. They are in turn guaranteed to be called after all non-terminal notifications for a given cycle through the notification queue.- Specified by:
isTerminalin interfaceNotificationQueue.Notification- Overrides:
isTerminalin classAbstractNotification- Returns:
- True iff this notification is terminal.
-
canExecute
public boolean canExecute(long step) Description copied from interface:NotificationQueue.NotificationCan this notification be executed? That is, are all of it's dependencies satisfied.- Parameters:
step- The step for which we are testing satisfaction- Returns:
- true if this notification can be executed, false if it has unmet dependencies
-
append
public com.fishlib.base.log.LogOutput append(com.fishlib.base.log.LogOutput logOutput) - Specified by:
appendin interfacecom.fishlib.base.log.LogOutputAppendable- Overrides:
appendin classAbstractNotification
-
run
public final void run()
-