Package org.apache.openejb.util

Examples of org.apache.openejb.util.Duration


    private final Lock lock = new ReentrantLock();
    private final Condition started = lock.newCondition();
    private final Condition stopped = lock.newCondition();

    public MultipointServer(final int port, final Tracker tracker) throws IOException {
        this("localhost", "localhost", port, tracker, randomColor(), true, new HashSet<URI>(0), new Duration(30, TimeUnit.SECONDS));
    }
View Full Code Here


            throw new NullPointerException("host cannot be null");

        if (broadcastHost == null)
            broadcastHost = bindHost;
        if (reconnectDelay == null)
            reconnectDelay = new Duration(30, TimeUnit.SECONDS);

        this.tracker = tracker;
        this.name = name;

        if (roots != null) {
View Full Code Here

    public Duration getConnectionMaxWaitTime() {
        return connectionMaxWaitTime;
    }

    public JmsConnectionFactoryBuilder withConnectionMaxWaitTime(final long time, final TimeUnit unit) {
        return withConnectionMaxWaitTime(new Duration(time, unit));
    }
View Full Code Here

    public JmsConnectionFactoryBuilder withConnectionMaxWaitTime(final long time, final TimeUnit unit) {
        return withConnectionMaxWaitTime(new Duration(time, unit));
    }

    public void setConnectionMaxWaitTime(final long time, final TimeUnit unit) {
        setConnectionMaxWaitTime(new Duration(time, unit));
    }
View Full Code Here

    public Duration getConnectionMaxIdleTime() {
        return connectionMaxIdleTime;
    }

    public JmsConnectionFactoryBuilder withConnectionMaxIdleTime(final long time, final TimeUnit unit) {
        return withConnectionMaxIdleTime(new Duration(time, unit));
    }
View Full Code Here

    public JmsConnectionFactoryBuilder withConnectionMaxIdleTime(final long time, final TimeUnit unit) {
        return withConnectionMaxIdleTime(new Duration(time, unit));
    }

    public void setConnectionMaxIdleTime(final long time, final TimeUnit unit) {
        setConnectionMaxIdleTime(new Duration(time, unit));
    }
View Full Code Here

    public Duration getAccessTimeout() {
        return accessTimeout;
    }

    public StatelessContainerBuilder withAccessTimeout(final long time, final TimeUnit unit) {
        return withAccessTimeout(new Duration(time, unit));
    }
View Full Code Here

    public StatelessContainerBuilder withAccessTimeout(final long time, final TimeUnit unit) {
        return withAccessTimeout(new Duration(time, unit));
    }

    public void setAccessTimeout(final long time, final TimeUnit unit) {
        setAccessTimeout(new Duration(time, unit));
    }
View Full Code Here

    public Duration getMaxAge() {
        return maxAge;
    }

    public StatelessContainerBuilder withMaxAge(final long time, final TimeUnit unit) {
        return withMaxAge(new Duration(time, unit));
    }
View Full Code Here

    public StatelessContainerBuilder withMaxAge(final long time, final TimeUnit unit) {
        return withMaxAge(new Duration(time, unit));
    }

    public void setMaxAge(final long time, final TimeUnit unit) {
        setMaxAge(new Duration(time, unit));
    }
View Full Code Here

TOP

Related Classes of org.apache.openejb.util.Duration

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.