Class BigDataRepositoryPreDestroyEvent

  • All Implemented Interfaces:
    IPortalEvent

    @StableMinor(version="14.1",
                 sinceVersion="8.1")
    public class BigDataRepositoryPreDestroyEvent
    extends AbstractPortalEvent
    Event that indicates that a IBigDataRepository instance is about to be destroyed in the local JVM. A repository instance is destroyed to free up resource when it no longer will be accessed in the local JVM. A repository being destroyed has no relationship from its data being deleted.

    Observers that listen to this event will receive the notification of this event and have the last opportunity act upon the repository instance before it is destroyed. Code requesting it using the IBigDataManager API will not be able to access it before it is destroyed, but may be handled another repository instance after it is initialized.

    Observers of this event must not use IBigDataManager to access this repository as its access will be blocked until this event resolves. Use getRepository() instead.

    Since:
    8.1.0
    Version:
    $Revision: 24683 $ $Date: 2021-08-23 18:55:58 -0300 (Mon, 23 Aug 2021) $
    See Also:
    BigDataRepositoryInitializedEvent, lumis.portal.event
    • Constructor Detail

      • BigDataRepositoryPreDestroyEvent

        public BigDataRepositoryPreDestroyEvent​(IBigDataRepository repository)
        Creates a new event for IBigDataRepository being initialized.
        Parameters:
        repository - the repository.
        Since:
        8.1.0
    • Method Detail

      • getRepository

        public IBigDataRepository getRepository()
        Returns the repository that has been initialized.
        Returns:
        the repository.
        Since:
        8.1.0