Tabnine Logo
PrimitiveManagementService.getExecutorService
Code IndexAdd Tabnine to your IDE (free)

How to use
getExecutorService
method
in
io.atomix.primitive.PrimitiveManagementService

Best Java code snippets using io.atomix.primitive.PrimitiveManagementService.getExecutorService (Showing top 10 results out of 315)

origin: atomix/atomix

public CrdtValueDelegate(String name, Serializer serializer, CrdtProtocolConfig config, PrimitiveManagementService managementService) {
 this.clusterEventService = managementService.getEventService();
 this.executorService = managementService.getExecutorService();
 this.valueSerializer = serializer;
 this.timestampProvider = config.getTimestampProvider();
 this.subject = String.format("atomix-crdt-value-%s", name);
 subscribeFuture = clusterEventService.subscribe(subject, SERIALIZER::decode, this::updateValue, executorService);
 broadcastFuture = executorService.scheduleAtFixedRate(
   this::broadcastValue, config.getGossipInterval().toMillis(), config.getGossipInterval().toMillis(), TimeUnit.MILLISECONDS);
}
origin: atomix/atomix

public CrdtSetDelegate(String name, Serializer serializer, CrdtProtocolConfig config, PrimitiveManagementService managementService) {
 this.clusterCommunicator = managementService.getCommunicationService();
 this.executorService = managementService.getExecutorService();
 this.elementSerializer = serializer;
 this.timestampProvider = config.getTimestampProvider();
 this.subject = String.format("atomix-crdt-set-%s", name);
 clusterCommunicator.subscribe(subject, SERIALIZER::decode, this::updateElements, executorService);
 broadcastFuture = executorService.scheduleAtFixedRate(
   this::broadcastElements, config.getGossipInterval().toMillis(), config.getGossipInterval().toMillis(), TimeUnit.MILLISECONDS);
}
origin: atomix/atomix

public CrdtCounterDelegate(String name, CrdtProtocolConfig config, PrimitiveManagementService managementService) {
 this.localMemberId = managementService.getMembershipService().getLocalMember().id();
 this.clusterCommunicator = managementService.getCommunicationService();
 this.executorService = managementService.getExecutorService();
 this.subject = String.format("atomix-crdt-counter-%s", name);
 clusterCommunicator.subscribe(subject, SERIALIZER::decode, this::updateCounters, executorService);
 broadcastFuture = executorService.scheduleAtFixedRate(
   this::broadcastCounters, config.getGossipInterval().toMillis(), config.getGossipInterval().toMillis(), TimeUnit.MILLISECONDS);
}
origin: atomix/atomix

 @SuppressWarnings("unchecked")
 @Override
 public CompletableFuture<DistributedSemaphore> buildAsync() {
  return newProxy(AtomicSemaphoreService.class, new AtomicSemaphoreServiceConfig().setInitialCapacity(config.initialCapacity()))
    .thenCompose(proxy -> new AtomicSemaphoreProxy(
      proxy,
      managementService.getPrimitiveRegistry(),
      managementService.getExecutorService())
      .connect())
    .thenApply(DelegatingAsyncDistributedSemaphore::new)
    .thenApply(AsyncDistributedSemaphore::sync);
 }
}
origin: atomix/atomix

 @SuppressWarnings("unchecked")
 @Override
 public CompletableFuture<AtomicSemaphore> buildAsync() {
  return newProxy(AtomicSemaphoreService.class, new AtomicSemaphoreServiceConfig().setInitialCapacity(config.initialCapacity()))
    .thenCompose(proxy -> new AtomicSemaphoreProxy(
      proxy,
      managementService.getPrimitiveRegistry(),
      managementService.getExecutorService())
      .connect())
    .thenApply(AsyncAtomicSemaphore::sync);
 }
}
origin: io.atomix/atomix-gossip

public CrdtSetDelegate(String name, Serializer serializer, CrdtProtocolConfig config, PrimitiveManagementService managementService) {
 this.clusterCommunicator = managementService.getCommunicationService();
 this.executorService = managementService.getExecutorService();
 this.elementSerializer = serializer;
 this.timestampProvider = config.getTimestampProvider();
 this.subject = String.format("atomix-crdt-set-%s", name);
 clusterCommunicator.subscribe(subject, SERIALIZER::decode, this::updateElements, executorService);
 broadcastFuture = executorService.scheduleAtFixedRate(
   this::broadcastElements, config.getGossipInterval().toMillis(), config.getGossipInterval().toMillis(), TimeUnit.MILLISECONDS);
}
origin: io.atomix/atomix-gossip

public CrdtValueDelegate(String name, Serializer serializer, CrdtProtocolConfig config, PrimitiveManagementService managementService) {
 this.clusterEventService = managementService.getEventService();
 this.executorService = managementService.getExecutorService();
 this.valueSerializer = serializer;
 this.timestampProvider = config.getTimestampProvider();
 this.subject = String.format("atomix-crdt-value-%s", name);
 subscribeFuture = clusterEventService.subscribe(subject, SERIALIZER::decode, this::updateValue, executorService);
 broadcastFuture = executorService.scheduleAtFixedRate(
   this::broadcastValue, config.getGossipInterval().toMillis(), config.getGossipInterval().toMillis(), TimeUnit.MILLISECONDS);
}
origin: io.atomix/atomix-gossip

public CrdtCounterDelegate(String name, CrdtProtocolConfig config, PrimitiveManagementService managementService) {
 this.localMemberId = managementService.getMembershipService().getLocalMember().id();
 this.clusterCommunicator = managementService.getCommunicationService();
 this.executorService = managementService.getExecutorService();
 this.subject = String.format("atomix-crdt-counter-%s", name);
 clusterCommunicator.subscribe(subject, SERIALIZER::decode, this::updateCounters, executorService);
 broadcastFuture = executorService.scheduleAtFixedRate(
   this::broadcastCounters, config.getGossipInterval().toMillis(), config.getGossipInterval().toMillis(), TimeUnit.MILLISECONDS);
}
origin: io.atomix/atomix

 @SuppressWarnings("unchecked")
 @Override
 public CompletableFuture<DistributedSemaphore> buildAsync() {
  return newProxy(AtomicSemaphoreService.class, new AtomicSemaphoreServiceConfig().setInitialCapacity(config.initialCapacity()))
    .thenCompose(proxy -> new AtomicSemaphoreProxy(
      proxy,
      managementService.getPrimitiveRegistry(),
      managementService.getExecutorService())
      .connect())
    .thenApply(DelegatingAsyncDistributedSemaphore::new)
    .thenApply(AsyncDistributedSemaphore::sync);
 }
}
origin: io.atomix/atomix

 @SuppressWarnings("unchecked")
 @Override
 public CompletableFuture<AtomicSemaphore> buildAsync() {
  return newProxy(AtomicSemaphoreService.class, new AtomicSemaphoreServiceConfig().setInitialCapacity(config.initialCapacity()))
    .thenCompose(proxy -> new AtomicSemaphoreProxy(
      proxy,
      managementService.getPrimitiveRegistry(),
      managementService.getExecutorService())
      .connect())
    .thenApply(AsyncAtomicSemaphore::sync);
 }
}
io.atomix.primitivePrimitiveManagementServicegetExecutorService

Javadoc

Returns the primitive thread pool.

Popular methods of PrimitiveManagementService

  • getMembershipService
  • getPartitionService
  • getPrimitiveCache
  • getCommunicationService
  • getEventService
  • getPrimitiveRegistry
  • getPrimitiveTypeRegistry
  • getProtocolTypeRegistry
  • getSerializationService

Popular in Java

  • Creating JSON documents from java classes using gson
  • addToBackStack (FragmentTransaction)
  • notifyDataSetChanged (ArrayAdapter)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top plugins for WebStorm
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