io.vertx.codegen.annotations.ProxyIgnore Java Examples

The following examples show how to use io.vertx.codegen.annotations.ProxyIgnore. 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: ProxyModel.java    From vertx-service-proxy with Apache License 2.0 6 votes vote down vote up
@Override
protected MethodInfo createMethodInfo(Set<ClassTypeInfo> ownerTypes, String methodName, String comment, Doc doc, TypeInfo returnType, Text returnDescription, boolean isFluent, boolean isCacheReturn, List<ParamInfo> mParams, ExecutableElement methodElt, boolean isStatic, boolean isDefault, ArrayList<TypeParamInfo.Method> typeParams, TypeElement declaringElt, boolean methodDeprecated, Text methodDeprecatedDesc) {
  AnnotationMirror proxyIgnoreAnnotation = Helper.resolveMethodAnnotation(ProxyIgnore.class, elementUtils, typeUtils, declaringElt, methodElt);
  boolean isProxyIgnore = proxyIgnoreAnnotation != null;
  AnnotationMirror proxyCloseAnnotation = Helper.resolveMethodAnnotation(ProxyClose.class, elementUtils, typeUtils, declaringElt, methodElt);
  boolean isProxyClose = proxyCloseAnnotation != null;
  ProxyMethodInfo proxyMeth = new ProxyMethodInfo(ownerTypes, methodName, returnType, returnDescription,
    isFluent, isCacheReturn, mParams, comment, doc, isStatic, isDefault, typeParams, isProxyIgnore,
    isProxyClose, methodDeprecated, methodDeprecatedDesc);
  if (isProxyClose && mParams.size() > 0) {
    if (mParams.size() > 1) {
      throw new GenException(this.modelElt, "@ProxyClose methods can't have more than one parameter");
    }
    if (proxyMeth.getKind() != MethodKind.FUTURE) {
      throw new GenException(this.modelElt, "@ProxyClose parameter must be Handler<AsyncResult<Void>>");
    }
    TypeInfo type = mParams.get(0).getType();
    TypeInfo arg = ((ParameterizedTypeInfo) ((ParameterizedTypeInfo) type).getArgs().get(0)).getArgs().get(0);
    if (arg.getKind() != ClassKind.VOID) {
      throw new GenException(this.modelElt, "@ProxyClose parameter must be " +
          "Handler<AsyncResult<Void>> instead of " + type);
    }
  }
  return proxyMeth;
}
 
Example #2
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void bulkIndex(final List<BulkIndexOptions> bulkIndexOptions, BulkOptions options, Handler<AsyncResult<BulkResponse>> resultHandler) {
    bulk(bulkIndexOptions, Collections.emptyList(), Collections.emptyList(), options, resultHandler);
}
 
Example #3
Source File: ValidProxy.java    From vertx-service-proxy with Apache License 2.0 4 votes vote down vote up
@ProxyIgnore
void ignored();
 
Example #4
Source File: TestService.java    From vertx-service-proxy with Apache License 2.0 4 votes vote down vote up
@ProxyIgnore
void ignoredMethod();
 
Example #5
Source File: KafkaProducerService.java    From vertx-kafka-service with Apache License 2.0 4 votes vote down vote up
@ProxyIgnore
@GenIgnore
default void sendBytes(ByteKafkaMessage message, Handler<AsyncResult<Void>> resultHandler) {
    sendBytes(message, new KafkaOptions(), resultHandler);
}
 
Example #6
Source File: KafkaProducerService.java    From vertx-kafka-service with Apache License 2.0 4 votes vote down vote up
@ProxyIgnore
@GenIgnore
default void sendString(StringKafkaMessage message, Handler<AsyncResult<Void>> resultHandler) {
    sendString(message, new KafkaOptions(), resultHandler);
}
 
Example #7
Source File: KafkaProducerService.java    From vertx-kafka-service with Apache License 2.0 4 votes vote down vote up
@ProxyIgnore
void stop();
 
Example #8
Source File: KafkaProducerService.java    From vertx-kafka-service with Apache License 2.0 4 votes vote down vote up
@ProxyIgnore
void start();
 
Example #9
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void deleteByQuery(List<String> indices, Handler<AsyncResult<DeleteByQueryResponse>> resultHandler) {
    deleteByQuery(indices, new DeleteByQueryOptions(), resultHandler);
}
 
Example #10
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void deleteByQuery(String index, Handler<AsyncResult<DeleteByQueryResponse>> resultHandler) {
    deleteByQuery(Collections.singletonList(index), new DeleteByQueryOptions(), resultHandler);
}
 
Example #11
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void deleteByQuery(String index, DeleteByQueryOptions options, Handler<AsyncResult<DeleteByQueryResponse>> resultHandler) {
    deleteByQuery(Collections.singletonList(index), options, resultHandler);
}
 
Example #12
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void multiGet(final List<MultiGetQueryOptions> multiGetQueryOptions, final Handler<AsyncResult<com.hubrick.vertx.elasticsearch.model.MultiGetResponse>> resultHandler) {
    multiGet(multiGetQueryOptions, new MultiGetOptions(), resultHandler);
}
 
Example #13
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void multiSearch(final List<MultiSearchQueryOptions> multiSearchQueryOptions, final Handler<AsyncResult<com.hubrick.vertx.elasticsearch.model.MultiSearchResponse>> resultHandler) {
    multiSearch(multiSearchQueryOptions, new MultiSearchOptions(), resultHandler);
}
 
Example #14
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void bulkDelete(final List<BulkDeleteOptions> bulkDeleteOptions, BulkOptions options, Handler<AsyncResult<BulkResponse>> resultHandler) {
    bulk(Collections.emptyList(), Collections.emptyList(), bulkDeleteOptions, options, resultHandler);
}
 
Example #15
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void bulkUpdate(final List<BulkUpdateOptions> bulkUpdateOptions, BulkOptions options, Handler<AsyncResult<BulkResponse>> resultHandler) {
    bulk(Collections.emptyList(), bulkUpdateOptions, Collections.emptyList(), options, resultHandler);
}
 
Example #16
Source File: ElasticSearchAdminService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void putMapping(String index, String type, JsonObject source, Handler<AsyncResult<Void>> resultHandler) {
    putMapping(Collections.singletonList(index), type, source, resultHandler);
}
 
Example #17
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void searchScroll(String scrollId, Handler<AsyncResult<SearchResponse>> resultHandler) {
    searchScroll(scrollId, new SearchScrollOptions(), resultHandler);
}
 
Example #18
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void search(List<String> indices, Handler<AsyncResult<SearchResponse>> resultHandler) {
    search(indices, new SearchOptions(), resultHandler);
}
 
Example #19
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void search(String index, SearchOptions options, Handler<AsyncResult<SearchResponse>> resultHandler) {
    search(Collections.singletonList(index), options, resultHandler);
}
 
Example #20
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void search(String index, Handler<AsyncResult<SearchResponse>> resultHandler) {
    search(index, new SearchOptions(), resultHandler);
}
 
Example #21
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@ProxyIgnore
void stop();
 
Example #22
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@ProxyIgnore
void start();
 
Example #23
Source File: ElasticSearchAdminService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void deleteIndex(List<String> indices, Handler<AsyncResult<Void>> resultHandler) {
    deleteIndex(indices, new DeleteIndexOptions(), resultHandler);
}
 
Example #24
Source File: ElasticSearchAdminService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void deleteIndex(String index, DeleteIndexOptions options, Handler<AsyncResult<Void>> resultHandler) {
    deleteIndex(Collections.singletonList(index), options, resultHandler);
}
 
Example #25
Source File: ElasticSearchAdminService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void deleteIndex(String index, Handler<AsyncResult<Void>> resultHandler) {
    deleteIndex(Collections.singletonList(index), new DeleteIndexOptions(), resultHandler);
}
 
Example #26
Source File: ElasticSearchAdminService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void putMapping(List<String> indices, String type, JsonObject source, Handler<AsyncResult<Void>> resultHandler) {
    putMapping(indices, type, source, null, resultHandler);
}
 
Example #27
Source File: ElasticSearchAdminService.java    From vertx-elasticsearch-service with Apache License 2.0 4 votes vote down vote up
@GenIgnore
@ProxyIgnore
default void putMapping(String index, String type, JsonObject source, MappingOptions options, Handler<AsyncResult<Void>> resultHandler) {
    putMapping(Collections.singletonList(index), type, source, options, resultHandler);
}
 
Example #28
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 2 votes vote down vote up
/**
 * http://www.elastic.co/guide/en/elasticsearch/client/java-api/1.4/delete.html
 *
 * @param index         the index name
 * @param type          the type name
 * @param id            the source id to delete
 * @param resultHandler result handler callback
 */
@GenIgnore
@ProxyIgnore
default void delete(String index, String type, String id, Handler<AsyncResult<DeleteResponse>> resultHandler) {
    delete(index, type, id, new DeleteOptions(), resultHandler);
}
 
Example #29
Source File: ElasticSearchService.java    From vertx-elasticsearch-service with Apache License 2.0 2 votes vote down vote up
/**
 * http://www.elastic.co/guide/en/elasticsearch/client/java-api/1.4/get.html
 *
 * @param index         the index name
 * @param type          the type name
 * @param id            the source id to update
 * @param resultHandler result handler callback
 */
@GenIgnore
@ProxyIgnore
default void get(String index, String type, String id, Handler<AsyncResult<GetResponse>> resultHandler) {
    get(index, type, id, new GetOptions(), resultHandler);
}
 
Example #30
Source File: InternalElasticSearchAdminService.java    From vertx-elasticsearch-service with Apache License 2.0 2 votes vote down vote up
/**
 * Returns the inner admin client
 *
 * @return
 */
@ProxyIgnore
AdminClient getAdmin();