O
- options typepublic class Subscription<O> extends Object
Constructor and Description |
---|
Subscription(String subscriptionId,
String eventSourceOrFilterId,
Optional<O> options,
Target target)
Constructs an subscription.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
eventSourceId()
Return the event source id the subscription is for
|
int |
hashCode() |
Optional<O> |
options()
Options the subscription is created with.
|
String |
subscriptionId()
The subscription id.
|
Target |
target()
Return target topic where the events shall be written to
|
String |
toString() |
public Subscription(String subscriptionId, String eventSourceOrFilterId, Optional<O> options, Target target)
subscriptionId
- subscription id. It is unique for the client applicationeventSourceOrFilterId
- event source id.options
- subscription options, e.g. filterstarget
- target where the events shall be written topublic String subscriptionId()
public String eventSourceId()
public Target target()
Copyright © 2022 Bosch.IO GmbH. All rights reserved.