ARIES-1880 - Use builder in subscribe
[aries-journaled-events.git] / org.apache.aries.events.api / src / main / java / org / apache / aries / events / api / Messaging.java
index 2cd1138a196e774b35c7ca50b38a9800b0cd2244..a66279d2c6a57563a38798588d7fa64fa7802925 100644 (file)
@@ -18,7 +18,6 @@
 package org.apache.aries.events.api;
 
 import java.util.Map;
-import java.util.function.Consumer;
 
 /**
  * Journaled messaging API
@@ -39,7 +38,7 @@ public interface Messaging {
      * @param callback will be called for each message received
      * @return Returned subscription must be closed by the caller to unsubscribe
      */
-    Subscription subscribe(String topic, Position position, Seek seek, Consumer<Received> callback);
+    Subscription subscribe(SubscribeRequest request);
 
     /**
      * Create a message with payload and metadata