public class Queue extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
REQUEST_QUEUE_INITIAL_CAPACITY |
| Constructor and Description |
|---|
Queue() |
| Modifier and Type | Method and Description |
|---|---|
Optional<Request> |
restoreRequest(String ticket)
Restore a
Request using a unique identifier. |
String |
store(Request request)
Store a
Request and get a unique identifier to fetch it later on. |
String |
toString() |
public static final int REQUEST_QUEUE_INITIAL_CAPACITY
public String store(Request request)
Request and get a unique identifier to fetch it later on.request - the Request.public Optional<Request> restoreRequest(String ticket)
Request using a unique identifier. The identifier can only be used once. If
no Request was found, null is returned.Copyright © 2022. All rights reserved.