Skip to content

Instantly share code, notes, and snippets.

View dmlloyd's full-sized avatar
🪐

David M. Lloyd dmlloyd

🪐
  • Red Hat, Inc.
  • Planet X
View GitHub Profile
@dmlloyd
dmlloyd / undertow.xml
Last active December 15, 2015 10:29 — forked from ctomc/undertow
<subsystem xmlns="urn:jboss:domain:io:1.0">
<xnio-worker name="default" task-core-threads="12" io-threads="3"/>
<xnio-buffer-pool name="default" buffer-size="1024" buffers-per-slice="1024"/>
</subsystem>
<subsystem xmlns="urn:jboss:domain:undertow:1.0">
<server name="foo">
<http-listener name="default" socket-binding="http" worker="default" buffer-pool="default"/>
<ajp-listener name="ajp-connector" socket-binding="ajp"/>
@dmlloyd
dmlloyd / ExtFormatter.java
Last active December 25, 2015 07:09
How about this...
/*
* JBoss, Home of Professional Open Source.
* Copyright 2009, Red Hat Inc., and individual contributors
* as indicated by the @author tags. See the copyright.txt file in the
* distribution for a full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
@dmlloyd
dmlloyd / RealmIdentity.java
Created December 10, 2014 16:36
Proposed credential verification API
public interface RealmIdentity {
// [...]
/**
* Verify the given credential. The result is one of the following:
* <ul>
* <li>{@link VerificationResult#DENIED} - the credential is not valid</li>
* <li>{@link VerificationResult#UNVERIFIED} - the credential is not supported or could not be verified; retry with another credential type</li>
* <li>{@link VerificationResult#VERIFIED} - the credential is valid and verified</li>
* </ul>
*
@dmlloyd
dmlloyd / BufferPool2.java
Last active August 29, 2015 14:15
Simplified buffer pool impl
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dmlloyd
dmlloyd / ByteBufferBuffer.java
Last active August 29, 2015 14:15
A bytebuffer queue for scatter/gather ops
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dmlloyd
dmlloyd / CloseableChannel3.java
Created February 19, 2015 11:59
Base-most interface
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dmlloyd
dmlloyd / AsynchronousChannel3.java
Last active August 29, 2015 14:15
Asynchronous channel base interface
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dmlloyd
dmlloyd / IoCallback2.java
Created February 19, 2015 12:01
Asynchronous callback
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dmlloyd
dmlloyd / StreamInputChannel3.java
Last active August 29, 2015 14:15
Stream input channel
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
@dmlloyd
dmlloyd / StreamOutputChannel3.java
Last active August 29, 2015 14:15
Stream output channel
/*
* JBoss, Home of Professional Open Source
*
* Copyright 2015 Red Hat, Inc. and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0