Interface FunctionalMap.ReadWriteMap<K,​V>

  • All Superinterfaces:
    AutoCloseable, FunctionalMap<K,​V>
    All Known Implementing Classes:
    ReadWriteMapImpl
    Enclosing interface:
    FunctionalMap<K,​V>

    @Experimental
    public static interface FunctionalMap.ReadWriteMap<K,​V>
    extends FunctionalMap<K,​V>
    Exposes read-write operations that can be executed against the functional map. The read-write operations that can be applied per entry are exposed by EntryView.ReadWriteEntryView.

    Read-write operations offer the possibility of writing values or metadata parameters, and returning previously stored information. Read-write operations are also crucial for implementing conditional, compare-and-swap (CAS) like operations.

    Locks are acquired before executing the read-write lambda.

    Method parameters for read-write operations, including lambdas, must be marshallable when running in a cluster.

    Since:
    8.0