public class DefaultTokenChangeExecuteStrategyListener<T extends Token<T>> extends SynchronousTokenChangeListener<T,SupplierTokenEvent<T>>
TokenEventSupplier.onTokenChange(com.neurosys.q.notification.events.SupplierTokenEvent)
is executed,
as ChangeListener
bound to the ShiftService
or DefaultAbstractTokenContainerService
.Constructor and Description |
---|
DefaultTokenChangeExecuteStrategyListener() |
DefaultTokenChangeExecuteStrategyListener(QStrategy<T> qStrategy) |
Modifier and Type | Method and Description |
---|---|
QStrategy<T> |
getqStrategy() |
void |
onChange(ChangeGenerator<SupplierTokenEvent<T>> changeGenerator,
SupplierTokenEvent<T> tokenEvent) |
protected void |
onSynchChange(ChangeGenerator<SupplierTokenEvent<T>> changeGenerator,
SupplierTokenEvent<T> change)
To Override
|
void |
setqStrategy(QStrategy<T> qStrategy) |
public DefaultTokenChangeExecuteStrategyListener()
public final void onChange(ChangeGenerator<SupplierTokenEvent<T>> changeGenerator, SupplierTokenEvent<T> tokenEvent)
onChange
in interface ChangeListener<SupplierTokenEvent<T extends Token<T>>>
onChange
in class SynchronousTokenChangeListener<T extends Token<T>,SupplierTokenEvent<T extends Token<T>>>
changeGenerator
- as the generator that caused the change. Specially useful if the Listener is subscribing to multiple ChangeGenerator
stokenEvent
- as the model change communicatedprotected final void onSynchChange(ChangeGenerator<SupplierTokenEvent<T>> changeGenerator, SupplierTokenEvent<T> change)
SynchronousTokenChangeListener
onSynchChange
in class SynchronousTokenChangeListener<T extends Token<T>,SupplierTokenEvent<T extends Token<T>>>
changeGenerator
- as ChangeGenerator
change
- as SynchronousTokenChange
Copyright © 2018. All rights reserved.