io.vertx.core.impl.TaskQueue Java Examples

The following examples show how to use io.vertx.core.impl.TaskQueue. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DataSourceHolder.java    From vertx-jdbc-client with Apache License 2.0 5 votes vote down vote up
private DataSourceHolder(TaskQueue creationQueue, DataSourceProvider provider, DataSource dataSource, ExecutorService exec, PoolMetrics metrics, int refCount) {
  if (dataSource != null) {
    Objects.requireNonNull(exec);
  } else {
    Objects.requireNonNull(creationQueue);
    Objects.requireNonNull(provider);
  }
  this.creationQueue = creationQueue;
  this.provider = provider;
  this.dataSource = dataSource;
  this.exec = exec;
  this.metrics = metrics;
  this.refCount = refCount;
}
 
Example #2
Source File: SessionHolder.java    From vertx-cassandra-client with Apache License 2.0 4 votes vote down vote up
SessionHolder() {
  connectionQueue = new TaskQueue();
  session = null;
  refCount = 1;
}
 
Example #3
Source File: SessionHolder.java    From vertx-cassandra-client with Apache License 2.0 4 votes vote down vote up
private SessionHolder(TaskQueue connectionQueue, CqlSession session, int refCount) {
  this.connectionQueue = connectionQueue;
  this.session = session;
  this.refCount = refCount;
}
 
Example #4
Source File: DataSourceHolder.java    From vertx-jdbc-client with Apache License 2.0 4 votes vote down vote up
DataSourceHolder(DataSourceProvider provider) {
  this(new TaskQueue(), provider, null, null, null, 1);
}
 
Example #5
Source File: SubsOpSerializer.java    From vertx-hazelcast with Apache License 2.0 4 votes vote down vote up
private SubsOpSerializer(VertxInternal vertx) {
  this.vertx = vertx;
  taskQueue = new TaskQueue();
}