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 |
|---|---|
| public Publisher | Returns: aPublisher that indicates that the resource is ready for usageNotifies the resource about its allocation. |
| public Publisher | Returns: aPublisher that indicates that the resource is ready to be releasedNotifies the resource that it is about to be released. |
| postAllocate | back to summary |
|---|---|
| public Publisher Notifies the resource about its allocation.
The method is called after creating a new resource or allocating a cached resource before applying any requests. The resource is ready for usage after completion of the returned
| |
| preRelease | back to summary |
|---|---|
| public Publisher Notifies the resource that it is about to be released.
The method is called after finishing its usage and prior to its release/close. The resource is ready for being released after completion of the returned | |