Java java.util.concurrent Exchanger fields, constructors, methods, implement or subclass

Example usage for Java java.util.concurrent Exchanger fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.util.concurrent Exchanger.

The text is from its open source code.

Constructor

Exchanger()
Creates a new Exchanger.

Method

Vexchange(V x)
Waits for another thread to arrive at this exchange point (unless the current thread is Thread#interrupt interrupted ), and then transfers the given object to it, receiving its object in return.
Vexchange(V x, long timeout, TimeUnit unit)
Waits for another thread to arrive at this exchange point (unless the current thread is Thread#interrupt interrupted or the specified waiting time elapses), and then transfers the given object to it, receiving its object in return.