public class EventHub extends Object
Feeds Channel event queues with events
Modifier and Type | Class and Description |
---|---|
static interface |
EventHub.EventHubDisconnected
Eventhub disconnection notification interface
|
Modifier and Type | Method and Description |
---|---|
long |
getConnectedTime()
Get last connect time.
|
long |
getDisconnectedTime()
Get disconnected time.
|
long |
getLastConnectedAttempt()
Get last attempt time to connect the event hub.
|
String |
getName()
Event hub name
|
Properties |
getProperties()
Event hub properties
|
String |
getUrl()
Get the GRPC URL used to connect.
|
boolean |
isConnected()
Is event hub connected.
|
EventHub.EventHubDisconnected |
setEventHubDisconnectedHandler(EventHub.EventHubDisconnected newEventHubDisconnectedHandler)
Set class to handle Event hub disconnects
|
void |
shutdown() |
String |
toString() |
public long getDisconnectedTime()
public boolean isConnected()
public long getConnectedTime()
public long getLastConnectedAttempt()
public String getName()
public Properties getProperties()
HFClient.newEventHub(String, String, Properties)
public String getUrl()
public void shutdown()
public EventHub.EventHubDisconnected setEventHubDisconnectedHandler(EventHub.EventHubDisconnected newEventHubDisconnectedHandler)
newEventHubDisconnectedHandler
- New handler to replace. If set to null no retry will take place.Copyright © 2017. All rights reserved.