public abstract class PubSubResponder extends Object implements AutoCloseable
PubSubMessage.| Modifier and Type | Field and Description |
|---|---|
protected BulletConfig |
config |
| Constructor and Description |
|---|
PubSubResponder(BulletConfig config)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
abstract void |
respond(String id,
PubSubMessage message)
Respond to a
PubSubMessage. |
protected BulletConfig config
public PubSubResponder(BulletConfig config)
config - The BulletConfig to use.public abstract void respond(String id, PubSubMessage message)
PubSubMessage.id - The id of the response.message - The actual PubSubMessage containing the response.public void close()
close in interface AutoCloseableCopyright © 2021. All rights reserved.