Package org.glassfish.grizzly.memory

Examples of org.glassfish.grizzly.memory.AbstractMemoryManager


    }

    public void setupNetwork() throws IOException {
        validateConfig(config);
        synchronized (listeners) {
            AbstractMemoryManager amm = null;
            for (final NetworkListener listener : config.getNetworkListeners().getNetworkListener()) {
                final GenericGrizzlyListener grizzlyListener = new GenericGrizzlyListener();
                grizzlyListener.configure(habitat, listener);
                final MemoryManager mm = grizzlyListener.transport.getMemoryManager();
                if (mm instanceof AbstractMemoryManager) {
                    amm = (AbstractMemoryManager) mm;
                }
                listeners.add(grizzlyListener);
                final Thread thread = new DefaultWorkerThread(Grizzly.DEFAULT_ATTRIBUTE_BUILDER,
                    grizzlyListener.getName(),
                    amm != null ? amm.createThreadLocalPool() : null,
                    new ListenerRunnable(grizzlyListener));
                thread.setDaemon(true);
                thread.start();
            }
            try {
View Full Code Here

TOP

Related Classes of org.glassfish.grizzly.memory.AbstractMemoryManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.