pr.markFileAsViewed
- shift+alt+m
next change - alt+F5
focus on tree - Ctrl-0
pr.markFileAsViewed
- shift+alt+m
next change - alt+F5
focus on tree - Ctrl-0
FROM container-registry.oracle.com/java/openjdk:21.0.1 | |
ENV VEGETA_VERSION 12.8.4 | |
RUN dnf -y update && dnf -y install wget curl | |
RUN wget -q "https://github.com/tsenart/vegeta/releases/download/v${VEGETA_VERSION}/vegeta_${VEGETA_VERSION}_linux_amd64.tar.gz" -O /tmp/vegeta.tar.gz \ | |
&& cd /bin \ | |
&& tar xzf /tmp/vegeta.tar.gz \ |
[INFO] Scanning for projects... | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] Detecting the operating system and CPU architecture | |
[INFO] ------------------------------------------------------------------------ | |
[INFO] os.detected.name: linux | |
[INFO] os.detected.arch: x86_64 | |
[INFO] os.detected.version: 5.15 | |
[INFO] os.detected.version.major: 5 | |
[INFO] os.detected.version.minor: 15 | |
[INFO] os.detected.release: ubuntu |
import java.io.FileInputStream; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.time.Duration; | |
import java.util.Arrays; | |
import java.util.concurrent.ExecutorService; | |
import io.helidon.common.configurable.ThreadPoolSupplier; | |
import io.helidon.common.http.DataChunk; |
server: | |
port: 8080 | |
tls.private-key.keystore: | |
resource.resource-path: server.p12 | |
passphrase: password |
@ServerEndpoint("/ws/echo") | |
public class EchoEndpoint { | |
@OnMessage | |
public void onMessage(Session session, String message) throws Exception { | |
session.getBasicRemote().sendText("Did you send " + message + "?"); | |
} | |
} |
public static void main(String[] args) { | |
WebServer.builder( | |
Routing.builder() | |
.register("/ws", TyrusSupport.builder() | |
.register(ServerEndpointConfig.Builder.create(WsEndpoint.class, "/echo").build()) | |
.build() | |
) | |
) | |
.port(8080) | |
.tls(WebServerTls.builder() |
@Path("/example") | |
@ApplicationScoped | |
public class LRAExampleResource { | |
@PUT | |
@LRA(value = LRA.Type.REQUIRES_NEW, timeLimit = 500, timeUnit = ChronoUnit.MILLIS) | |
@Path("start-example") | |
public Response startExample(@HeaderParam(LRA_HTTP_CONTEXT_HEADER) URI lraId, String data){ | |
// Executed in the scope of new LRA transaction | |
return Response.ok().build(); |