Class SyncRegistration
- java.lang.Object
-
- io.axoniq.axonserver.connector.impl.SyncRegistration
-
- All Implemented Interfaces:
Registration
public class SyncRegistration extends Object implements Registration
Synchronous implementation of theRegistration.
-
-
Constructor Summary
Constructors Constructor Description SyncRegistration(Runnable cancelAction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompletableFuture<Void>cancel()Cancel the registration from which this instance was returned.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.axoniq.axonserver.connector.Registration
awaitAck, onAck, onAck
-
-
-
-
Method Detail
-
cancel
public CompletableFuture<Void> cancel()
Description copied from interface:RegistrationCancel the registration from which this instance was returned. Does nothing if the registration has already been canceled, or when the registration was undone by another mechanism (such as a new registration overriding this one).- Specified by:
cancelin interfaceRegistration- Returns:
- a
CompletableFutureofVoidto react whenthisRegistrationhas been canceled
-
-