Class FMUCHandler.OutboundJoinProgress
java.lang.Object
org.jivesoftware.openfire.muc.spi.FMUCHandler.OutboundJoinProgress
- All Implemented Interfaces:
Serializable
- Enclosing class:
- FMUCHandler
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionOutboundJoinProgress(org.xmpp.packet.JID peer, CompletableFuture<List<org.xmpp.packet.Packet>> callback) -
Method Summary
Modifier and TypeMethodDescriptionaddToQueue(org.xmpp.packet.Packet stanza, MUCOccupant sender) Adds a stanza to be sent to the remote, joined MUC as soon as federation has been established.CompletableFuture<List<org.xmpp.packet.Packet>>org.xmpp.packet.JIDgetPeer()ArrayList<org.xmpp.packet.Packet>booleanbooleanbooleanList<org.jivesoftware.openfire.muc.spi.FMUCHandler.OutboundJoinProgress.QueuedStanza>Retrieve and clean the list of stanzas that have been queued after federation was initiated, but before it was finished.
-
Constructor Details
-
OutboundJoinProgress
public OutboundJoinProgress(@Nonnull org.xmpp.packet.JID peer, @Nonnull CompletableFuture<List<org.xmpp.packet.Packet>> callback)
-
-
Method Details
-
getPeer
public org.xmpp.packet.JID getPeer() -
getCallback
-
getResponses
-
addToQueue
public CompletableFuture<?> addToQueue(@Nonnull org.xmpp.packet.Packet stanza, @Nonnull MUCOccupant sender) Adds a stanza to be sent to the remote, joined MUC as soon as federation has been established. This method is intended to be used only when federation is in progress of being established.- Parameters:
stanza- The stanza to sharesender- The author of the stanza- Returns:
- A future, indicating if local distribution of the stanza needs to wait.
-
purgeQueue
public List<org.jivesoftware.openfire.muc.spi.FMUCHandler.OutboundJoinProgress.QueuedStanza> purgeQueue()Retrieve and clean the list of stanzas that have been queued after federation was initiated, but before it was finished.- Returns:
- A list of queued stanzas (possibly empty).
-
isJoinComplete
public boolean isJoinComplete() -
isRejected
public boolean isRejected() -
getRejectionMessage
-
isSuccessful
public boolean isSuccessful()
-