Package com.hazelcast.jet.pulsar
Class PulsarDataConnection
java.lang.Object
com.hazelcast.dataconnection.DataConnectionBase
com.hazelcast.jet.pulsar.PulsarDataConnection
- All Implemented Interfaces:
DataConnection
Represents Apache Pulsar
DataConnection.- Since:
- 6.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classProperties that are possible to use withPulsarDataConnection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()Called by the member when shutting down.org.apache.pulsar.client.api.PulsarClientCreates a newclientor reuses shared one.Lists all resources, filtering out by tenant and/or namespace if specified.static DataConnectionConfigpulsarDataConnectionConf(String name, String brokerUrl, String serviceHttpUrl) Returns basicDataConnectionConfigwith given name, brokerUrl and service url.Returns the list of possible values forDataConnectionResource.type(), that will be returned whenDataConnection.listResources()is called.Methods inherited from class com.hazelcast.dataconnection.DataConnectionBase
getConfig, getName, release, retainMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.hazelcast.dataconnection.DataConnection
options
-
Constructor Details
-
PulsarDataConnection
-
-
Method Details
-
getClient
@Nonnull public org.apache.pulsar.client.api.PulsarClient getClient()Creates a newclientor reuses shared one.In case of shared data connections, the
DataConnectionBase.retain()method is always automatically called. If there is an error during client creation, the data connection is not released andDataConnectionBase.release()must be called explicitly. -
listResources
Lists all resources, filtering out by tenant and/or namespace if specified. -
resourceTypes
Description copied from interface:DataConnectionReturns the list of possible values forDataConnectionResource.type(), that will be returned whenDataConnection.listResources()is called. Returned values are case-insensitive, e.g.DataConnectionResource.type()may returnMY_RESand this methodmy_res. -
destroy
public void destroy()Description copied from interface:DataConnectionCalled by the member when shutting down. Should unconditionally close all connections and release resources. -
pulsarDataConnectionConf
@Nonnull public static DataConnectionConfig pulsarDataConnectionConf(String name, String brokerUrl, String serviceHttpUrl) Returns basicDataConnectionConfigwith given name, brokerUrl and service url.
-