Uses of Interface
dk.cloudcreate.essentials.components.foundation.Lifecycle
Packages that use Lifecycle
Package
Description
-
Uses of Lifecycle in dk.cloudcreate.essentials.components.foundation.fencedlock
Subinterfaces of Lifecycle in dk.cloudcreate.essentials.components.foundation.fencedlockModifier and TypeInterfaceDescriptioninterfaceThis library provides a Distributed Locking Manager based of the Fenced Locking concept described here
TheFencedLockManageris responsible for obtaining and managing distributedFencedLock's, which are named exclusive locks.
Only oneFencedLockManagerinstance can acquire aFencedLockat a time.
The implementation has been on supporting intra-service (i.e.Classes in dk.cloudcreate.essentials.components.foundation.fencedlock that implement LifecycleModifier and TypeClassDescriptionclassDBFencedLockManager<UOW extends UnitOfWork,LOCK extends DBFencedLock> -
Uses of Lifecycle in dk.cloudcreate.essentials.components.foundation.messaging.queue
Subinterfaces of Lifecycle in dk.cloudcreate.essentials.components.foundation.messaging.queueModifier and TypeInterfaceDescriptioninterfaceDurableQueuesconsumerinterfaceTheDurableQueuesconcept supports intra-service point-to-point messaging using durable Queues that guarantee At-Least-Once delivery of messages.
The only requirement is that message producers and message consumers can access the same underlying durable Queue storage.Classes in dk.cloudcreate.essentials.components.foundation.messaging.queue that implement LifecycleModifier and TypeClassDescriptionclassDefaultDurableQueueConsumer<DURABLE_QUEUES extends DurableQueues,UOW extends UnitOfWork, UOW_FACTORY extends UnitOfWorkFactory<UOW>> The defaultDurableQueueConsumerwhich provides basic implementation (including retrying messages in case of failure, polling interval optimization, etc.)
Log levels of interest: -
Uses of Lifecycle in dk.cloudcreate.essentials.components.foundation.reactive.command
Classes in dk.cloudcreate.essentials.components.foundation.reactive.command that implement LifecycleModifier and TypeClassDescriptionclassProvides a JVM local and durable, in regard toDurableLocalCommandBus.sendAndDontWait(Object)/DurableLocalCommandBus.sendAndDontWait(Object, Duration)), variant of theCommandBusconcept
Durability forDurableLocalCommandBus.sendAndDontWait(Object)/DurableLocalCommandBus.sendAndDontWait(Object, Duration)) is delegated toDurableQueues
WhichQueueNamethat is used will be determined by the specifiedDurableLocalCommandBus.getCommandQueueName()
TheRedeliveryPolicyis determined by the specifiedDurableLocalCommandBus.getCommandQueueRedeliveryPolicy()
Note: If theSendAndDontWaitErrorHandlerprovided doesn't rethrow the exception, then the underlyingDurableQueueswill not be able to retry the command.
Due to this theDurableLocalCommandBusdefaults to using theSendAndDontWaitErrorHandler.RethrowingSendAndDontWaitErrorHandler