1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2025-12-06 05:01:12 +01:00

Add SynchronizationPoint.getFailureException()

This commit is contained in:
Florian Schmaus 2017-03-12 14:55:38 +01:00
parent fc9748b567
commit 525feaa161
2 changed files with 15 additions and 1 deletions

View file

@ -226,6 +226,16 @@ public class SynchronizationPoint<E extends Exception> {
}
}
public E getFailureException() {
connectionLock.lock();
try {
return failureException;
}
finally {
connectionLock.unlock();
}
}
/**
* Wait for the condition to become something else as {@link State#RequestSent} or {@link State#Initial}.
* {@link #reportSuccess()}, {@link #reportFailure()} and {@link #reportFailure(Exception)} will either set this