- All Implemented Interfaces:
- Consumer<TYPE>, Supplier<TYPE>
public class ConcurrentTransfer<TYPE>
extends Object
implements Consumer<TYPE>, Supplier<TYPE>
Abstracts a meeting point between two threads, where a reference can change hands. It is essentially
a latch where a reference to a value can be set while a thread waits on it.