Interface LinkedDataStore

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int delete​(int handle)
      Delete data associated to the given handle from the store
      int first()
      Get the first data handle stored
      void init()
      Initialize the data store
      boolean isLocked​(int handle)
      Check if the data associated with a given handle is locked
      void lock​(int handle)
      Lock the data associated to a given handle
      int next​(int handle)
      Get the next data handle after the given one
      int previous​(int handle)
      Get the previous data handle after the given one
      int replace​(int handle, Object obj)
      Replace data in the store at the given position
      Object retrieve​(int handle)
      Retrieve the data associated to a given handle
      int store​(Object obj, int previousHandle)
      Put some data under in the store after the previous handle data
      void unlock​(int handle)
      Unlock the data associated to a given handle
    • Method Detail

      • next

        int next​(int handle)
          throws DataStoreException
        Get the next data handle after the given one
        Parameters:
        handle - block handle
        Returns:
        the next entry handle or -1 if their is no successor
        Throws:
        DataStoreException
      • previous

        int previous​(int handle)
              throws DataStoreException
        Get the previous data handle after the given one
        Parameters:
        handle - block handle
        Returns:
        the previous entry handle or -1 if their is no predecessor
        Throws:
        DataStoreException
      • store

        int store​(Object obj,
                  int previousHandle)
           throws DataStoreException
        Put some data under in the store after the previous handle data
        Parameters:
        previousHandle - previous entry handle, use 0 if the store is empty
        Throws:
        DataStoreException
      • replace

        int replace​(int handle,
                    Object obj)
             throws DataStoreException
        Replace data in the store at the given position
        Parameters:
        handle - message handle
        obj - the message to store
        Throws:
        DataStoreException
      • delete

        int delete​(int handle)
            throws DataStoreException
        Delete data associated to the given handle from the store
        Returns:
        the previous handle or -1
        Throws:
        DataStoreException - on storage error or invalid handle
      • isLocked

        boolean isLocked​(int handle)
                  throws DataStoreException
        Check if the data associated with a given handle is locked
        Throws:
        DataStoreException - on storage error or invalid handle