question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add more parameters to `ArmeriaSettings`

See original GitHub issue

Currently, AmreriaSettings has only limited configuration parameters. If users want to set a parameter(e.g. maxRequestLength), they need to implement a bean:

@Bean
public ArmeriaServerConfigurator setMaxRequestLength() {
    return sb -> sb.maxRequestLength(...);
}

It would be nice if we provide more parameter setters to ArmeriaSettings from the ServerBuilder.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
ghkim3221commented, Jul 23, 2021

I need it. Let me work ✋

1reaction
ghkim3221commented, Jul 23, 2021

Does un-grouping really make things look bad?

I’m a bit worried that this will lead to missing synchronization between properties and methods like registration beans before 1.x in the past. 🤔

I prefer to use the builder method name itself so that we can easily check the synchronization between ArmeriaSettings and ServerBuilder using reflections.

I grouped for consistency since many spring-boot properties are grouped. However @ikhoon’s comment look reasonable to ungroup 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Index (Armeria 1.10.0 API reference) - javadoc.io
Adds new parameters with the specified name and values . ... ArmeriaSettings() - Constructor for class com.linecorp.armeria.spring.
Read more >
Annotated services — Armeria documentation
If multiple parameters exist with the same name in a query string, they can be injected as a List<?> or Set<?> , e.g....
Read more >
Pass multiple parameters in Spring batch - java - Stack Overflow
We use the following to pass the multiple parameters to a job private JobParameters buildJobParameters(String date,String wfId){ return new ...
Read more >
Passing multiple parameters to bean - JBoss.org
Hi, is it possible to pass multiple parameters to a bean. For example I have the following method within my bean
Read more >
Passing parameters to a backing bean method — oracle-tech
Imagine that i create a new button on the system, than i need to put the button on a page, i do not...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found