[infinispan-issues] [JBoss JIRA] (ISPN-9923) Reactive basic API

Katia Aresti (Jira) issues at jboss.org
Mon Feb 4 07:54:02 EST 2019


     [ https://issues.jboss.org/browse/ISPN-9923?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Katia Aresti updated ISPN-9923:
-------------------------------
    Description: 
Create a first *ReactiveCache* api based in reactive streams standard

{code:java}
public interface ReactiveCache<K, V> {

   CompletionStage<V> get(K key);

   CompletionStage<Void> put(K key, V value);

   CompletionStage<V> getAndPut(K key, V value);

   CompletionStage<Void> remove(K key);

   CompletionStage<Boolean> remove(K key, V value);

   CompletionStage<V> getAndRemove(K key);

   CompletionStage<Void> putMany(Publisher<Map.Entry<K, V>> pairs);

   Publisher<K> getKeys();

   Publisher<V> getValues();

   CompletionStage<Long> size();

}
{code}


  was:
Create a first *ReactiveCache* api based in reactive streams standard

{code title=ReactiveCache.java}
public interface ReactiveCache<K, V> {

   CompletionStage<V> get(K key);

   CompletionStage<Void> put(K key, V value);

   CompletionStage<V> getAndPut(K key, V value);

   CompletionStage<Void> remove(K key);

   CompletionStage<Boolean> remove(K key, V value);

   CompletionStage<V> getAndRemove(K key);

   CompletionStage<Void> putMany(Publisher<Map.Entry<K, V>> pairs);

   Publisher<K> getKeys();

   Publisher<V> getValues();

   CompletionStage<Long> size();

}
{code}




> Reactive basic API
> ------------------
>
>                 Key: ISPN-9923
>                 URL: https://issues.jboss.org/browse/ISPN-9923
>             Project: Infinispan
>          Issue Type: Sub-task
>          Components: API
>            Reporter: Katia Aresti
>            Assignee: Katia Aresti
>            Priority: Major
>
> Create a first *ReactiveCache* api based in reactive streams standard
> {code:java}
> public interface ReactiveCache<K, V> {
>    CompletionStage<V> get(K key);
>    CompletionStage<Void> put(K key, V value);
>    CompletionStage<V> getAndPut(K key, V value);
>    CompletionStage<Void> remove(K key);
>    CompletionStage<Boolean> remove(K key, V value);
>    CompletionStage<V> getAndRemove(K key);
>    CompletionStage<Void> putMany(Publisher<Map.Entry<K, V>> pairs);
>    Publisher<K> getKeys();
>    Publisher<V> getValues();
>    CompletionStage<Long> size();
> }
> {code}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the infinispan-issues mailing list