Java Code Examples for javax.validation.constraints.NotNull

The following are top voted examples for showing how to use javax.validation.constraints.NotNull. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: springboot-shiro-cas-mybatis   File: BaseSpnegoKnownClientSystemsFilterAction.java   View source code 8 votes vote down vote up
/**
 * Pulls the remote IP from the current HttpServletRequest, or grabs the value
 * for the specified alternative attribute (say, for proxied requests).  Falls
 * back to providing the "normal" remote address if no value can be retrieved
 * from the specified alternative header value.
 * @param context the context
 * @return the remote ip
 */
private String getRemoteIp(@NotNull final RequestContext context) {
    final HttpServletRequest request = WebUtils.getHttpServletRequest(context);
    String userAddress = request.getRemoteAddr();
    logger.debug("Remote Address = {}", userAddress);

    if (StringUtils.isNotBlank(this.alternativeRemoteHostAttribute)) {

        userAddress = request.getHeader(this.alternativeRemoteHostAttribute);
        logger.debug("Header Attribute [{}] = [{}]", this.alternativeRemoteHostAttribute, userAddress);

        if (StringUtils.isBlank(userAddress)) {
            userAddress = request.getRemoteAddr();
            logger.warn("No value could be retrieved from the header [{}]. Falling back to [{}].",
                    this.alternativeRemoteHostAttribute, userAddress);
        }
    }
    return userAddress;
}
 
Example 2
Project: jobson   File: JobResource.java   View source code 7 votes vote down vote up
@GET
@Path("/{job-id}/stderr")
@ApiOperation(
        value = "Get the job's standard error",
        notes = "Get the job's standard error, if available. A job that has not yet starrted will not have a standard error and, " +
                "therefore, this method will return a 404. There is no guarantee that all running/finished jobs will have standard " +
                "error data. This is because administrative and cleanup routines may dequeue a job's output in order to save space on " +
                "the server.")
@Produces(DEFAULT_BINARY_MIME_TYPE)
@PermitAll
public Response fetchJobStderrById(
        @Context
                SecurityContext context,
        @ApiParam(value = "ID of the job to get stderr for")
        @PathParam("job-id")
        @NotNull
        JobId jobId) {

    if (jobId == null)
        throw new WebApplicationException("Job ID cannot be null", 400);

    return generateBinaryDataResponse(jobId, jobDAO.getStderr(jobId));
}
 
Example 3
Project: act-platform   File: FactEndpoint.java   View source code 6 votes vote down vote up
@GET
@Path("/uuid/{id}")
@Produces(MediaType.APPLICATION_JSON)
@ApiOperation(
        value = "Retrieve a Fact by its UUID.",
        notes = "This operation returns a Fact identified by its UUID. The result includes the Objects directly " +
                "linked to the requested Fact. The request will be rejected with a 403 if a user does not have " +
                "access to the requested Fact.\n\n" +
                "If the accessMode is 'Public' the Fact will be available to everyone. If the accessMode is " +
                "'Explicit' only users in the Fact's ACL will have access to the Fact. If the accessMode is " +
                "'RoleBased' (the default mode) a user must be either in the Fact's ACL or have general role-based " +
                "access to the Organization owning the Fact. A user who created a Fact will always have access to it.",
        response = Fact.class
)
@ApiResponses({
        @ApiResponse(code = 401, message = "User could not be authenticated."),
        @ApiResponse(code = 403, message = "User is not allowed to perform this operation."),
        @ApiResponse(code = 404, message = "Requested Fact does not exist."),
        @ApiResponse(code = 412, message = "Any parameter has an invalid format.")
})
public Response getFactById(
        @PathParam("id") @ApiParam(value = "UUID of the requested Fact.") @NotNull @Valid UUID id
) throws AccessDeniedException, AuthenticationFailedException, InvalidArgumentException, ObjectNotFoundException {
  return buildResponse(service.getFact(getHeader(), new GetFactByIdRequest().setId(id)));
}
 
Example 4
Project: microbean-service-broker-api   File: CompositeServiceBroker.java   View source code 6 votes vote down vote up
@NotNull
@Override
public final LastOperation getLastOperation(final LastOperationQuery lastOperationQuery) throws ServiceBrokerException {
  Objects.requireNonNull(lastOperationQuery, () -> "lastOperationQuery must not be null");
  LastOperation returnValue = null;
  final String serviceId = lastOperationQuery.getServiceId();
  if (serviceId != null) {
    ServiceBroker serviceBroker = null;
    try {
      this.serviceBrokerAssociationLock.readLock().lock();
      serviceBroker = this.getServiceBrokerForServiceId(serviceId);
    } finally {
      this.serviceBrokerAssociationLock.readLock().unlock();
    }
    if (serviceBroker != null) {
      returnValue = serviceBroker.getLastOperation(lastOperationQuery);
    }
  }
  if (returnValue == null) {
    throw new InvalidServiceBrokerQueryException(lastOperationQuery);
  }
  return returnValue;
}
 
Example 5
Project: REST-Web-Services   File: MoviePersistenceServiceImpl.java   View source code 6 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void updateReview(
        @NotNull @Valid final Review review,
        @Min(1) final Long reviewId,
        @NotNull final MovieEntity movie
) throws ResourceConflictException {
    log.info("Called with review {}, reviewId {}, movie {}", review, reviewId, movie);

    this.existsReview(movie.getReviews()
            .stream()
            .filter(r -> r.getStatus() == DataStatus.ACCEPTED)
            .collect(Collectors.toList()), review);

    final MovieReviewEntity movieReview = this.entityManager.find(MovieReviewEntity.class, reviewId);
    movieReview.setTitle(review.getTitle());
    movieReview.setReview(review.getReview());
}
 
Example 6
Project: bootstrap   File: JAXRSBeanValidationImplicitInInterceptorTest.java   View source code 6 votes vote down vote up
@Test
public void jsr349SimpleInvalid() {
	try {
		validationInInterceptor.handleValidation(MESSAGE, INSTANCE, fromName("jsr349Simple"), Arrays.asList(new Object[] { null }));
		Assert.fail("Expected validation errors");
	} catch (final ConstraintViolationException cve) {

		// Check all expected errors are there.
		final Set<ConstraintViolation<?>> constraintViolations = cve.getConstraintViolations();
		Assert.assertNotNull(constraintViolations);
		Assert.assertEquals(1, constraintViolations.size());

		// Check expected errors
		final ConstraintViolation<?> error1 = constraintViolations.iterator().next();
		Assert.assertEquals(NotNull.class, error1.getConstraintDescriptor().getAnnotation().annotationType());
		Assert.assertEquals("jsr349Simple.param", error1.getPropertyPath().toString());
	}
}
 
Example 7
Project: microbean-service-broker-api   File: CompositeServiceBroker.java   View source code 6 votes vote down vote up
@NotNull
@Override
public ProvisionServiceInstanceCommand.Response execute(@NotNull final ProvisionServiceInstanceCommand command) throws ServiceBrokerException {
  Objects.requireNonNull(command, () -> "command must not be null");
  ProvisionServiceInstanceCommand.Response returnValue = null;
  final String serviceId = command.getServiceId();
  if (serviceId != null) {
    ServiceBroker serviceBroker = null;
    try {
      this.serviceBrokerAssociationLock.readLock().lock();
      serviceBroker = this.getServiceBrokerForServiceId(serviceId);
    } finally {
      this.serviceBrokerAssociationLock.readLock().unlock();
    }
    if (serviceBroker != null) {
      returnValue = serviceBroker.execute(command);
    }
  }
  if (returnValue == null) {
    throw new InvalidServiceBrokerCommandException(command);
  }
  return returnValue;
}
 
Example 8
Project: mitosis-microservice-spring-reactor   File: SpringBootKafkaController.java   View source code 6 votes vote down vote up
@RequestMapping(method = RequestMethod.GET, path = "/createCell")
public void createCell(@NotNull @RequestParam String name, @NotNull @RequestParam CellType cellType) throws ExecutionException, InterruptedException {
    JSONObject cell = new JSONObject();
    cell.put("name", name);
    cell.put("type", cellType);

    ListenableFuture<SendResult<String, String>> future = kafkaTemplate.send(topic, cell.toString());
    future.addCallback(new ListenableFutureCallback<SendResult<String, String>>() {
        @Override
        public void onSuccess(SendResult<String, String> result) {
            System.out.println("success");
        }

        @Override
        public void onFailure(Throwable ex) {
            System.out.println("failed");
        }
    });
}
 
Example 9
Project: REST-Web-Services   File: MovieSearchResult.java   View source code 5 votes vote down vote up
/**
 * Constructor.
 *
 * @param id The movie ID
 * @param title The title of the movie
 * @param type The type of the movie
 * @param rating The movie rating
 */
@JsonCreator
public MovieSearchResult(
        @NotNull @JsonProperty("id") final Long id,
        @NotBlank @JsonProperty("title") final String title,
        @NotNull @JsonProperty("type") final MovieType type,
        @NotNull @JsonProperty("rating") final Float rating
) {
    super(id.toString());
    this.title = title;
    this.type = type;
    this.rating = rating;
}
 
Example 10
Project: cas4.0.x-server-wechat   File: ServiceContext.java   View source code 5 votes vote down vote up
/**
 * Creates a new instance with required parameters.
 *
 * @param service Service principal.
 * @param registeredService Registered service corresponding to given service.
 */
public ServiceContext(@NotNull final Service service, @NotNull final RegisteredService registeredService) {
    this.service = service;
    this.registeredService = registeredService;
    if (!registeredService.matches(service)) {
        throw new IllegalArgumentException("Registered service does not match given service.");
    }
}
 
Example 11
Project: cas-server-4.2.1   File: DefaultLdapRegisteredServiceMapper.java   View source code 5 votes vote down vote up
/**
 * Gets the attribute values if more than one, otherwise an empty list.
 *
 * @param entry the entry
 * @param attrName the attr name
 * @return the collection of attribute values
 */
private Collection<String> getMultiValuedAttributeValues(@NotNull final LdapEntry entry, @NotNull final String attrName) {
    final LdapAttribute attrs = entry.getAttribute(attrName);
    if (attrs != null) {
        return attrs.getStringValues();
    }
    return Collections.emptyList();
}
 
Example 12
Project: zhihu-spider   File: QuestionApi.java   View source code 5 votes vote down vote up
@ApiOperation(value = "问题获取", notes = "问题获取", response = ResultDTO.class, tags = { "ZhihuQuestion", })
@ApiResponses(value = { @ApiResponse(code = 200, message = "返回问题对象", response = ResultDTO.class),
		@ApiResponse(code = 200, message = "返回错误信息", response = ResultDTO.class) })

@RequestMapping(value = "/question/get", produces = { "application/json" }, method = RequestMethod.GET)
ResponseEntity<ResultDTO> questionGetGet(
		@NotNull @ApiParam(value = "问题id", required = true, defaultValue = "0213f784cdd9493aab7d44683b0bbb1d") @RequestParam(value = "id", required = true) String id);
 
Example 13
Project: dropwizard-dsegraph   File: DseGraphHealthCheck.java   View source code 5 votes vote down vote up
public DseGraphHealthCheck(
        @NotNull DseSession session,
        @NotNull String validationQuery,
        @NotNull Duration validationTimeout) {

    this.session = session;
    this.validationQuery = validationQuery;
    this.validationTimeout = validationTimeout;
}
 
Example 14
Project: elastest-instrumentation-manager   File: AgentFull.java   View source code 5 votes vote down vote up
/**
 * Get logstashPort
 * @return logstashPort
 **/
@JsonProperty("logstash_port")
@ApiModelProperty(example = "5044", required = true, value = "")
@NotNull
public String getLogstashPort() {
  return logstashPort;
}
 
Example 15
Project: bench   File: JgroupsActorRegistryClusterClient.java   View source code 5 votes vote down vote up
@Override
public void onMessage(@NotNull final Message msg, @NotNull final ActorLifecycleMessage lifecycleMessage) {
    requireNonNull(msg);
    requireNonNull(lifecycleMessage);

    lifecycleMessage.sendTo(actorsListener);
}
 
Example 16
Project: schematic   File: ArrayParser.java   View source code 5 votes vote down vote up
@Override
void parseProperty(@NotNull ArrayGenerator generator, @NotNull JsonArrayProperty property, @NotNull JsonNode node) {
    switch (property) {
        case ITEMS:
            if (node.isArray()) {
                Iterator<JsonNode> nodeIterator = node.elements();
                while (nodeIterator.hasNext()) {
                    addItem(generator, nodeIterator.next());
                }
            } else {
                addItem(generator, node);
            }
            break;
        case ADDITIONAL_ITEMS:
            generator.setAdditionalItems(node.booleanValue());
            break;
        case MAX_ITEMS:
            generator.setMaxItems(node.intValue());
            break;
        case MIN_ITEMS:
            generator.setMinItems(node.intValue());
            break;
        case UNIQUE_ITEMS:
            generator.setUniqueItems(node.booleanValue());
            break;
    }
}
 
Example 17
Project: springboot-shiro-cas-mybatis   File: WebUtils.java   View source code 5 votes vote down vote up
/**
 * Gets credential from the context.
 *
 * @param context the context
 * @return the credential, or null if it cant be found in the context or if it has no id.
 */
public static Credential getCredential(@NotNull final RequestContext context) {
    final Credential cFromRequest = (Credential) context.getRequestScope().get("credential");
    final Credential cFromFlow = (Credential) context.getFlowScope().get("credential");

    final Credential credential = cFromRequest != null ? cFromRequest : cFromFlow;
    if (credential != null && StringUtils.isBlank(credential.getId())) {
        return null;
    }
    return credential;
}
 
Example 18
Project: http-caching-and-concurrency-examples   File: ClimateResource.java   View source code 5 votes vote down vote up
@PUT
public Response put(@Context Request request, @NotNull ClimateDto climate) {
    synchronized (transactionLock) {
        ClimateDto currentClimate = stockholmClimateRepository.get();
        EntityTag currentETag = eTagGenerator.eTagFor(currentClimate);

        Optional<Response> preconditionFailedResponse = evaluateETagPrecondition(request, currentETag);
        if (preconditionFailedResponse.isPresent()) return preconditionFailedResponse.get();

        stockholmClimateRepository.save(climate);
    }

    EntityTag eTag = eTagGenerator.eTagFor(climate);
    return Response.noContent().tag(eTag).build();
}
 
Example 19
Project: testing_security_development_enterprise_systems   File: PostEJB.java   View source code 5 votes vote down vote up
public void voteFor(@NotNull String userId, long postId) {

        Post post = em.find(Post.class, postId, LockModeType.PESSIMISTIC_WRITE);
        if (post == null) {
            throw new IllegalArgumentException(post.getClass().getSimpleName() + " does not exist: " + postId);
        }

        if (post.getVotesFor().contains(userId)) {
            throw new IllegalArgumentException("User " + userId + " already voted for this post");
        }

        post.getVotesFor().add(userId);
        post.getVotesAgainst().remove(userId);
    }
 
Example 20
Project: openshift-ldapsync   File: Create.java   View source code 5 votes vote down vote up
public Create(
        @NotNull T data,
        @NotNull String localPart,
        @NotNull ExecuteRestCall sender,
        @NotNull YamlPrinter printer,
        @NotNull String templateName
) {
    super(data, localPart, sender);

    this.printer = printer;
    this.templateName = templateName;
}
 
Example 21
Project: bench   File: ActorValidator.java   View source code 5 votes vote down vote up
private static Class<?> loadClass(@NotNull final String className) throws ValidationException {
    try {
        return Class.forName(className); // NOSONAR
    } catch (ClassNotFoundException e) {
        throw ValidationException.create(String.format(LOAD_MSG, className), e);
    }
}
 
Example 22
Project: bench   File: ActorBootstrap.java   View source code 5 votes vote down vote up
private static Config parseClusterConfig(@NotNull final String jsonConfig) throws ValidationException {
    try {
        return ConfigFactory.parseString(jsonConfig, Constants.CONFIG_PARSE_OPTIONS);
    } catch (ConfigException e) {
        throw ValidationException.create("Cluster configuration error for " + jsonConfig, e);
    }
}
 
Example 23
Project: microbean-service-broker-api   File: ProvisionServiceInstanceCommand.java   View source code 5 votes vote down vote up
public ProvisionServiceInstanceCommand(final String instanceId,
                                       @NotNull /* @NotEmpty */ final String serviceId,
                                       @NotNull /* @NotEmpty */ final String planId,
                                       final Map<? extends String, ?> parameters,
                                       @NotNull /* @NotEmpty */ final String organizationGuid,
                                       @NotNull /* @NotEmpty */ final String spaceGuid) {
  this(instanceId, serviceId, planId, null, false, organizationGuid, spaceGuid, parameters);
}
 
Example 24
Project: REST-Web-Services   File: ContributionSearchResult.java   View source code 5 votes vote down vote up
/**
 * Constructor.
 *
 * @param id The contribution ID
 * @param field The movie field
 * @param date The creation date
 */
@JsonCreator
public ContributionSearchResult(
        @NotNull @JsonProperty("id") final Long id,
        @NotNull @JsonProperty("field") final MovieField field,
        @NotNull @JsonProperty("date") final Date date
) {
    super(id.toString());
    this.field = field;
    this.date = date;
}
 
Example 25
Project: cas-server-4.2.1   File: TicketsResource.java   View source code 5 votes vote down vote up
@Override
public Credential fromRequestBody(@NotNull final MultiValueMap<String, String> requestBody) {
    final String username = requestBody.getFirst("username");
    final String password = requestBody.getFirst("password");
    if(username == null || password == null) {
        throw new BadRequestException("Invalid payload. 'username' and 'password' form fields are required.");
    }
    return new UsernamePasswordCredential(requestBody.getFirst("username"), requestBody.getFirst("password"));
}
 
Example 26
Project: bench   File: Agent.java   View source code 5 votes vote down vote up
@Override
public synchronized void onActorCloseRequest(@NotNull final ActorKey actor) {
    requireNonNull(actor);

    ManagedActor found = actors.remove(actor);
    if (found == null) {
        log.warn("{} Could not find {} to close.", this, actor);
    } else {
        log.info("{} Closing {}...", this, actor);
        found.close();
        log.info("{} Closed {}.", this, actor);
    }
}
 
Example 27
Project: waggle-dance   File: PrimaryMetaStore.java   View source code 5 votes vote down vote up
@Size(min = 0, max = 0)
@NotNull
@Override
public String getDatabasePrefix() {
  // primary is always empty
  return EMPTY_PREFIX;
}
 
Example 28
Project: vertx-zero   File: SimpleApi.java   View source code 5 votes vote down vote up
@Path("second/{name}")
@GET
public String sayHello1(
        final Session session,
        @NotNull @PathParam("name") final String lang,
        @NotNull(message = "limit参数不可为空") @QueryParam("limit") final Integer limit) {
    System.out.println(session.data());
    Params.start(this.getClass()).monitor(lang).monitor(limit).end();
    return lang;
}
 
Example 29
Project: REST-Web-Services   File: MovieContributionPersistenceServiceImpl.java   View source code 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void updateGenreContribution(
        @NotNull @Valid final ContributionUpdate<Genre> contribution,
        @Min(1) final Long contributionId,
        @NotBlank final String userId
) throws ResourceNotFoundException, ResourceConflictException {
    log.info("Called with contribution {}, contributionId {}, userId {}",
            contribution, contributionId, userId);

    final UserEntity user = this.findUser(userId);
    final ContributionEntity contributionEntity = this.findContribution(contributionId, DataStatus.WAITING, user, MovieField.GENRE);

    this.validIds(contributionEntity, contribution);
    this.cleanUp(contributionEntity, contribution, contributionEntity.getMovie().getGenres());

    contribution.getElementsToAdd().forEach((key, value) -> {
        this.moviePersistenceService.updateGenre(value, key, contributionEntity.getMovie());
    });
    contribution.getElementsToUpdate().forEach((key, value) -> {
        this.moviePersistenceService.updateGenre(value, key, contributionEntity.getMovie());
    });
    contribution.getNewElementsToAdd()
            .forEach(genre -> {
                final Long id = this.moviePersistenceService.createGenre(genre, contributionEntity.getMovie());
                contributionEntity.getIdsToAdd().add(id);
            });

    contributionEntity.setSources(contribution.getSources());
    Optional.ofNullable(contribution.getComment()).ifPresent(contributionEntity::setUserComment);
}
 
Example 30
Project: bench   File: TestActorMetrics.java   View source code 5 votes vote down vote up
@Override
public void onMessage(@NotNull final String from, @NotNull final String message) throws ReactorException {

    if (message.equals(PRODUCE_METRICS_MSG)) {
        metrics.sinkFor(DUMMY_METRIC_A).add(10);
        metrics.sinkFor(DUMMY_METRIC_B).timed(1);
    }

    super.onMessage(from, message);
}
 
Example 31
Project: asura   File: Json.java   View source code 5 votes vote down vote up
/**
 *
 * 获取json传 K-V 的V值只适应于获取叶子节点的V值
 * 注意:如果{"a":"b","c":{"d":"d1","e":{"f","f1"}}}
 * 当 path为c时候,返回:{"d":"d1","e":{"f","f1"}}
 * @param json
 * @param paths
 *
 * @return
 */
public static String getString(@NotNull String json, @Nullable String... paths) {
    JsonNode jsonNode = parseJsonNode(json,  paths);
    if (Check.isNull(jsonNode)) {
        return null;
    }
    if(jsonNode.isValueNode()){
        return jsonNode.textValue();
    }
    return toJsonString(jsonNode);
}
 
Example 32
Project: REST-Web-Services   File: MovieContributionPersistenceServiceImpl.java   View source code 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
@Override
public void updateLanguageContribution(
        @NotNull @Valid final ContributionUpdate<Language> contribution,
        @Min(1) final Long contributionId,
        @NotBlank final String userId
) throws ResourceNotFoundException, ResourceConflictException {
    log.info("Called with contribution {}, contributionId {}, userId {}",
            contribution, contributionId, userId);

    final UserEntity user = this.findUser(userId);
    final ContributionEntity contributionEntity = this.findContribution(contributionId, DataStatus.WAITING, user, MovieField.LANGUAGE);

    this.validIds(contributionEntity, contribution);
    this.cleanUp(contributionEntity, contribution, contributionEntity.getMovie().getLanguages());

    contribution.getElementsToAdd().forEach((key, value) -> {
        this.moviePersistenceService.updateLanguage(value, key, contributionEntity.getMovie());
    });
    contribution.getElementsToUpdate().forEach((key, value) -> {
        this.moviePersistenceService.updateLanguage(value, key, contributionEntity.getMovie());
    });
    contribution.getNewElementsToAdd()
            .forEach(language -> {
                final Long id = this.moviePersistenceService.createLanguage(language, contributionEntity.getMovie());
                contributionEntity.getIdsToAdd().add(id);
            });

    contributionEntity.setSources(contribution.getSources());
    Optional.ofNullable(contribution.getComment()).ifPresent(contributionEntity::setUserComment);
}
 
Example 33
Project: syndesis   File: Creator.java   View source code 4 votes vote down vote up
@POST
@Produces(MediaType.APPLICATION_JSON)
@Consumes("application/json")
default T create(@Context SecurityContext sec, @NotNull @Valid T obj) {
    return getDataManager().create(obj);
}
 
Example 34
Project: syndesis   File: Updater.java   View source code 4 votes vote down vote up
@PUT
@Path(value = "/{id}")
@Consumes("application/json")
default void update(@NotNull @PathParam("id") @ApiParam(required = true) String id, @NotNull @Valid T obj) {
    getDataManager().update(obj);
}
 
Example 35
Project: bench   File: AgentClusterClientFactory.java   View source code 4 votes vote down vote up
@NotNull
ActorRegistryClusterClient createForActorRegistry();
 
Example 36
Project: theskeleton   File: RoleService.java   View source code 4 votes vote down vote up
@PreAuthorize("hasAuthority('role_write')")
RoleEntity saveRole(@NotNull @Valid RoleEntity role);
 
Example 37
Project: bench   File: ClusterClientsTest.java   View source code 4 votes vote down vote up
@Override
public AgentRegistryClusterClient createForAgentRegistry(@NotNull final AgentRegistry agentRegistry) {
    return null;
}
 
Example 38
Project: theskeleton   File: UserAdminService.java   View source code 4 votes vote down vote up
@PreAuthorize("hasAuthority('user_write')")
UserEntity saveUser(@NotNull @Valid UserEntity userEntity);
 
Example 39
Project: javaee-design-patterns   File: Note.java   View source code 4 votes vote down vote up
@NotNull
@Schema(required = true, description = "date when note was created", example = "2017-12-15T01:27:39.258")
LocalDateTime getCreatedWhen();
 
Example 40
Project: drift   File: DriftNettyClientConfig.java   View source code 4 votes vote down vote up
@NotNull
@MinDuration("1ms")
public Duration getConnectTimeout()
{
    return connectTimeout;
}