public class SynchronizationPoint<E extends Exception> extends 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 Exception, SmackException.NoResponseException, SmackException.NotConnectedException
public void checkIfSuccessOrWaitOrThrow() throws SmackException.NoResponseException, E extends Exception
SmackException.NoResponseException
E extends Exception
public void checkIfSuccessOrWait() throws SmackException.NoResponseException
public void reportSuccess()
public void reportFailure()
public void reportFailure(E failureException)
public boolean wasSuccessful()
public boolean requestSent()