Class AbstractTrsStore

    • Field Detail

      • BASE_BUFFER_SIZE

        protected static final int BASE_BUFFER_SIZE
        Proven buffer size for base members consumption with good performance for memory and db storage.
        See Also:
        Constant Field Values
      • EVENTS_BUFFER_SIZE

        protected static final int EVENTS_BUFFER_SIZE
        Proven buffer size for resource events consumption with good performance for memory and db storage.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractTrsStore

        protected AbstractTrsStore​(URI domain)
        Creates a new store instance representing the given OSLC domain.
        Parameters:
        domain - the OSLC domain
        Throws:
        NullPointerException - if the domain is null
        Since:
        3.11.0
    • Method Detail

      • getDomain

        protected final URI getDomain()
        Returns the OSLC domain represented by this store.
        Since:
        3.11.0
      • assertNoOrderOverflow

        protected void assertNoOrderOverflow​(int order)
        Asserts whether the given order can be safely incremented after this call, to add a new change event. If the given number is yet the maximum value, this method corrupts the store and throws an exception.
        Parameters:
        order - the last event order used and that is to increment after this call
        Throws:
        CompletionException - if the given order is yet the maximum value
        Since:
        3.11.0