public interface Lifecycle
Can be implemented by connections. Components allocating/releasing connections notify resources implementing this interface about the ongoing activity so that resources can react in a proper way (e.g. allocating or releasing associated resources).
Connection
Modifier and Type | Method and Description |
---|---|
Publisher<Void> |
postAllocate()
Notifies the resource about its allocation.
|
Publisher<Void> |
preRelease()
Notifies the resource that it is about to be released.
|
Publisher<Void> postAllocate()
Publisher
.Publisher
that indicates that the resource is ready for usagePublisher<Void> preRelease()
Publisher
.Publisher
that indicates that the resource is ready to be releasedCopyright © 2022. All rights reserved.