@ThreadSafe public class SendThreadPool extends Object
| Constructor and Description |
|---|
SendThreadPool()
Instantiates a new Send thread pool.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
abkHash(Abk abk)
Static method to generate hash from ABK
|
SendThread |
createSendThread(SendRequest sendRequest,
Consumer<Abk> resultListener)
Create a new send thread and register in pool
|
void |
handleAbk(Abk abk)
Handle received ABK
|
void |
removeThread(String hash)
Remove thread.
|
static String |
sendHash(SendRequest sendRequest)
Static method to generate hash from send request
|
public SendThread createSendThread(SendRequest sendRequest, Consumer<Abk> resultListener)
sendRequest - the send requestresultListener - the result listenerpublic void handleAbk(Abk abk)
abk - the abkpublic void removeThread(String hash)
hash - the hashpublic static String sendHash(SendRequest sendRequest)
sendRequest - the send requestCopyright © 2011–2019 Danish Maritime Authority. All rights reserved.