public class SynchronizationPoint<E extends java.lang.Exception>
extends java.lang.Object
Constructor and Description |
---|
SynchronizationPoint(AbstractXMPPConnection connection) |
Modifier and Type | Method and Description |
---|---|
void |
checkIfSuccessOrWait() |
void |
checkIfSuccessOrWaitOrThrow() |
void |
init() |
void |
reportFailure() |
void |
reportFailure(E failureException) |
void |
reportSuccess() |
boolean |
requestSent() |
void |
sendAndWaitForResponse(TopLevelStreamElement request) |
void |
sendAndWaitForResponseOrThrow(PlainStreamElement request) |
boolean |
wasSuccessful() |
public SynchronizationPoint(AbstractXMPPConnection connection)
public void init()
public void sendAndWaitForResponse(TopLevelStreamElement request) throws SmackException.NoResponseException, SmackException.NotConnectedException
public void sendAndWaitForResponseOrThrow(PlainStreamElement request) throws E extends java.lang.Exception, SmackException.NoResponseException, SmackException.NotConnectedException
E extends java.lang.Exception
SmackException.NoResponseException
SmackException.NotConnectedException
public void checkIfSuccessOrWaitOrThrow() throws SmackException.NoResponseException, E extends java.lang.Exception
SmackException.NoResponseException
E extends java.lang.Exception
public void checkIfSuccessOrWait() throws SmackException.NoResponseException
public void reportSuccess()
public void reportFailure()
public void reportFailure(E failureException)
public boolean wasSuccessful()
public boolean requestSent()