Interface TransientStore

    • Method Detail

      • exists

        boolean exists​(String key)
        Returns true if an entry exists with the given key.
        Since:
        7.10
      • putParameter

        void putParameter​(String key,
                          String parameter,
                          Serializable value)
        Sets parameter to value in the entry with the given key.

        If entry does not exist a new entry is created. If parameter already exists in the entry it is overwritten.

        Since:
        7.10
      • getParameter

        Serializable getParameter​(String key,
                                  String parameter)
        Gets the value of parameter in the entry with the given key.

        Returns null if entry or parameter does not exist.

        Since:
        7.10
      • putParameters

        void putParameters​(String key,
                           Map<String,​Serializable> parameters)
        Puts parameters in the entry with the given key. Overwrites any existing parameter in the entry.

        If entry does not exist a new entry is created.

        Since:
        7.10
      • getParameters

        Map<String,​Serializable> getParameters​(String key)
        Gets values of the parameters in the entry with the given key.

        Returns null if entry does not exist.

        Since:
        7.10
      • putBlobs

        void putBlobs​(String key,
                      List<Blob> blobs)
        Associates the given blobs with the entry with the given key.

        If entry does not exist a new entry is created.

        Since:
        7.10
      • getBlobs

        List<Blob> getBlobs​(String key)
        Gets the blobs associated with the entry with the given key.

        Returns null if entry does not exist.

        Since:
        7.10
      • getSize

        long getSize​(String key)
        Returns the size of the blobs associated with the entry with the given key or -1 if entry does not exist.
        Since:
        7.10
      • isCompleted

        boolean isCompleted​(String key)
        Returns true if the entry with the given key is ready.
        Since:
        7.10
      • setCompleted

        void setCompleted​(String key,
                          boolean completed)
        Marks the entry with the given key as ready.

        If entry does not exist a new entry is created.

        Since:
        7.10
      • remove

        void remove​(String key)
        Removes entry with the given key.

        Has no effect if entry does not exist.

      • release

        void release​(String key)
        Informs the store that the entry with the given key can be released if TTL or GC parameters require to do some cleanup.

        Has no effect if entry does not exist.