Tabnine Logo
Authentication.start
Code IndexAdd Tabnine to your IDE (free)

How to use
start
method
in
org.apache.pulsar.client.api.Authentication

Best Java code snippets using org.apache.pulsar.client.api.Authentication.start (Showing top 5 results out of 315)

origin: apache/pulsar

public PulsarClientImpl(ClientConfigurationData conf, EventLoopGroup eventLoopGroup, ConnectionPool cnxPool)
    throws PulsarClientException {
  if (conf == null || isBlank(conf.getServiceUrl()) || eventLoopGroup == null) {
    throw new PulsarClientException.InvalidConfigurationException("Invalid client configuration");
  }
  this.eventLoopGroup = eventLoopGroup;
  this.conf = conf;
  conf.getAuthentication().start();
  this.cnxPool = cnxPool;
  externalExecutorProvider = new ExecutorProvider(conf.getNumListenerThreads(), getThreadFactory("pulsar-external-listener"));
  if (conf.getServiceUrl().startsWith("http")) {
    lookup = new HttpLookupService(conf, eventLoopGroup);
  } else {
    lookup = new BinaryProtoLookupService(this, conf.getServiceUrl(), conf.isUseTls(), externalExecutorProvider.getExecutor());
  }
  timer = new HashedWheelTimer(getThreadFactory("pulsar-timer"), 1, TimeUnit.MILLISECONDS);
  producers = Maps.newIdentityHashMap();
  consumers = Maps.newIdentityHashMap();
  state.set(State.Open);
}
origin: org.apache.pulsar/pulsar-testclient

try {
  Authentication auth = AuthenticationFactory.create(authPluginClassName, authParams);
  auth.start();
  AuthenticationDataProvider authData = auth.getAuthData();
  if (authData.hasDataForHttp()) {
origin: org.apache.pulsar/pulsar-client-original

public PulsarClientImpl(ClientConfigurationData conf, EventLoopGroup eventLoopGroup, ConnectionPool cnxPool)
    throws PulsarClientException {
  if (conf == null || isBlank(conf.getServiceUrl()) || eventLoopGroup == null) {
    throw new PulsarClientException.InvalidConfigurationException("Invalid client configuration");
  }
  this.eventLoopGroup = eventLoopGroup;
  this.conf = conf;
  conf.getAuthentication().start();
  this.cnxPool = cnxPool;
  externalExecutorProvider = new ExecutorProvider(conf.getNumListenerThreads(), getThreadFactory("pulsar-external-listener"));
  if (conf.getServiceUrl().startsWith("http")) {
    lookup = new HttpLookupService(conf, eventLoopGroup);
  } else {
    lookup = new BinaryProtoLookupService(this, conf.getServiceUrl(), conf.isUseTls(), externalExecutorProvider.getExecutor());
  }
  timer = new HashedWheelTimer(getThreadFactory("pulsar-timer"), 1, TimeUnit.MILLISECONDS);
  producers = Maps.newIdentityHashMap();
  consumers = Maps.newIdentityHashMap();
  state.set(State.Open);
}
origin: org.apache.pulsar/pulsar-proxy

auth.start();
origin: org.apache.pulsar/pulsar-client-admin-original

auth.start();
org.apache.pulsar.client.apiAuthenticationstart

Javadoc

Initialize the authentication provider

Popular methods of Authentication

  • getAuthData
  • close
  • getAuthMethodName
  • configure
    Configure the authentication plugins with the supplied parameters

Popular in Java

  • Running tasks concurrently on multiple threads
  • startActivity (Activity)
  • getSystemService (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • Kernel (java.awt.image)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • TreeMap (java.util)
    Walk the nodes of the tree left-to-right or right-to-left. Note that in descending iterations, next
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now