Package org.apache.camel.service.lra
Class LRAClient
- java.lang.Object
-
- org.apache.camel.service.lra.LRAClient
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class LRAClient extends Object implements Closeable
-
-
Constructor Summary
Constructors Constructor Description LRAClient(LRASagaService sagaService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CompletableFuture<Void>
compensate(URL lra)
CompletableFuture<Void>
complete(URL lra)
CompletableFuture<Void>
join(URL lra, LRASagaStep step)
CompletableFuture<URL>
newLRA()
-
-
-
Constructor Detail
-
LRAClient
public LRAClient(LRASagaService sagaService)
-
-
Method Detail
-
newLRA
public CompletableFuture<URL> newLRA()
-
join
public CompletableFuture<Void> join(URL lra, LRASagaStep step)
-
complete
public CompletableFuture<Void> complete(URL lra)
-
compensate
public CompletableFuture<Void> compensate(URL lra)
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-