public interface IOnTaskStop extends IChannelTask
IChannelTask to facilitate prevention of deadlocks and inconsistent data structures in result of Thread.stop()| Modifier and Type | Method and Description |
|---|---|
long |
requestForMoreLifeTime(long requestNumber,
long totalMoreTimeUntilNow,
IChannelWorker worker)
before invoke
Thread.stop() this method is invoked until the return-value is less than 1
Attention! The call is not synchronized in worker thread! |
configure, runlong requestForMoreLifeTime(long requestNumber,
long totalMoreTimeUntilNow,
IChannelWorker worker)
Thread.stop() this method is invoked until the return-value is less than 1
Attention! The call is not synchronized in worker thread!requestNumber - how many times this request is invoked since IChannelTask#run(IQueue, IMetrics, IPropertyBlock, ITaskControl, java.util.List) is invokedtotalMoreTimeUntilNow - how many time in ms was requested since IChannelTask#run(IQueue, IMetrics, IPropertyBlock, ITaskControl, java.util.List) is invokedworker - worker thread invoked IChannelTask#run(IQueue, IMetrics, IPropertyBlock, ITaskControl, java.util.List) currently runs in timeoutCopyright © 2020. All rights reserved.