Class ParticipantHandle
java.lang.Object
be.theking90000.mumble.controller.spaces.ParticipantHandle
Typed Spaces view of a profile-neutral participant ownership handle.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ParticipantListener listener) Adds a listener for subsequent typed lifecycle and status notifications.Optional<be.theking90000.mumble.controller.core.ConnectionCredential>be.theking90000.mumble.controller.core.ParticipantIdvoidremoveListener(ParticipantListener listener) Removes a listener; a missing listener is ignored.CompletableFuture<be.theking90000.mumble.controller.core.AcceptedRevision>setSpec(ParticipantSpec spec) Replaces the complete desired Spaces participant specification.be.theking90000.mumble.controller.core.ParticipantHandleStatestate()CompletableFuture<be.theking90000.mumble.controller.core.ConnectionCredential>
-
Method Details
-
participantId
public be.theking90000.mumble.controller.core.ParticipantId participantId()- Returns:
- stable logical participant identity
-
state
public be.theking90000.mumble.controller.core.ParticipantHandleState state()- Returns:
- current local ownership lifecycle state
-
desiredSpec
- Returns:
- latest complete desired Spaces specification
-
latestStatus
- Returns:
- latest decoded Spaces status, or empty before the first update
-
whenOwned
- Returns:
- stable future completed on the first ownership grant
-
connectionCredential
- Returns:
- current connection credential, if ownership has granted one
-
whenConnectionCredentialAvailable
public CompletableFuture<be.theking90000.mumble.controller.core.ConnectionCredential> whenConnectionCredentialAvailable()- Returns:
- stable future completed with the first connection credential
-
setSpec
public CompletableFuture<be.theking90000.mumble.controller.core.AcceptedRevision> setSpec(ParticipantSpec spec) Replaces the complete desired Spaces participant specification.- Parameters:
spec- complete replacement specification- Returns:
- future completed with the acceptance watermarks covering this update
-
unregister
- Returns:
- future completed after this exact ownership capability is released
-
addListener
Adds a listener for subsequent typed lifecycle and status notifications.- Parameters:
listener- listener to add
-
removeListener
Removes a listener; a missing listener is ignored.- Parameters:
listener- listener to remove
-