Package org.eclipse.jetty.client
Interface Synchronizable
-
@Deprecated(since="2021-05-27") public interface SynchronizableDeprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.Implementations of this interface expose a lock object via
getLock()so that callers can synchronize externally on that lock:if (iterator instanceof Synchronizable) { Object element = null; synchronized (((Synchronizable)iterator).getLock()) { if (iterator.hasNext()) element = iterator.next(); } }In the example above, the calls to
hasNext()andnext()are performed "atomically".
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.lang.ObjectgetLock()Deprecated.
-