Package com.illumon.iris.db.v2
Class InstrumentedListener
- All Implemented Interfaces:
com.fishlib.base.log.LogOutputAppendable
,NotificationQueue.Dependency
,LivenessManager
,LivenessNode
,LivenessReferent
,Listener
,ListenerBase
,Serializable
- Direct Known Subclasses:
BaseTable.ListenerImpl
,InstrumentedListenerAdapter
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Delivers the desired update, bracketed by performance instrumentation.Nested classes/interfaces inherited from class com.illumon.iris.db.v2.InstrumentedListenerBase
InstrumentedListenerBase.ErrorNotification, InstrumentedListenerBase.NotificationBase
-
Constructor Summary
ConstructorsConstructorDescriptionInstrumentedListener
(String description) InstrumentedListener
(String description, boolean terminalListener) -
Method Summary
Modifier and TypeMethodDescriptiongetNotification
(Index added, Index removed, Index modified) Creates a notification for the table changes.void
setInitialImage
(Index initialImage) Sets the index for the initial data.Methods inherited from class com.illumon.iris.db.v2.InstrumentedListenerBase
append, canExecute, getEntry, getErrorNotification, onFailure, onFailureInternal, onFailureInternalWithDependent, satisfied, setVerboseLogging, toString
Methods inherited from class com.illumon.iris.db.util.liveness.LivenessArtifact
manageWithCurrentScope, unmanage, unmanage
Methods inherited from class com.illumon.iris.db.util.liveness.ReferenceCountedLivenessNode
destroy, dropReference, getWeakReference, initializeTransientFieldsForLiveness, onReferenceCountAtZero, tryManage, tryRetainReference
Methods inherited from class com.illumon.util.referencecounting.ReferenceCounted
decrementReferenceCount, incrementReferenceCount, resetReferenceCount, tryDecrementReferenceCount, tryIncrementReferenceCount
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.illumon.iris.db.v2.ListenerBase
getErrorNotification, onFailure
Methods inherited from interface com.illumon.iris.db.util.liveness.LivenessManager
manage, tryManage
Methods inherited from interface com.illumon.iris.db.util.liveness.LivenessReferent
dropReference, getReferentDescription, getWeakReference, retainReference, tryRetainReference
-
Constructor Details
-
InstrumentedListener
-
InstrumentedListener
-
-
Method Details
-
getNotification
Description copied from interface:Listener
Creates a notification for the table changes.- Specified by:
getNotification
in interfaceListener
- Parameters:
added
- rows addedremoved
- rows removedmodified
- rows modified- Returns:
- table change notification
-
setInitialImage
Description copied from interface:Listener
Sets the index for the initial data.- Specified by:
setInitialImage
in interfaceListener
- Parameters:
initialImage
- initial image
-