public class ResultQueue<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
TIME_WAIT_RESULT |
static TimeUnit |
TIME_WAIT_RESULT_UNIT |
| Constructor and Description |
|---|
ResultQueue(int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
close() |
void |
put(T item) |
T |
take(int time,
TimeUnit timeUnit) |
public static final int TIME_WAIT_RESULT
public static final TimeUnit TIME_WAIT_RESULT_UNIT
public void put(T item) throws InterruptedException
InterruptedExceptionpublic T take(int time, TimeUnit timeUnit) throws InterruptedException
InterruptedExceptionprotected void close()
Copyright © 2017 SAP SE. All Rights Reserved.