Package de.novanic.eventservice.config

Examples of de.novanic.eventservice.config.RemoteEventServiceConfiguration


    protected EventServiceConfiguration createConfiguration(int aMinTime, int aMaxTime, int aTimeoutTime, String aConnectionStrategyServerConnectorClassName) {
        return createConfiguration(aMinTime, aMaxTime, aTimeoutTime, SessionConnectionIdGenerator.class.getName(), aConnectionStrategyServerConnectorClassName);
    }

    protected EventServiceConfiguration createConfiguration(int aMinTime, int aMaxTime, int aTimeoutTime, String aConnectionIdGeneratorClassName, String aConnectionStrategyServerConnectorClassName) {
        return new RemoteEventServiceConfiguration("TestConfiguration", aMinTime, aMaxTime, aTimeoutTime, 0, aConnectionIdGeneratorClassName, null, aConnectionStrategyServerConnectorClassName, "utf-8", 100000);
    }
View Full Code Here


     * @return {@link de.novanic.eventservice.config.EventServiceConfiguration} the loaded configuration
     * @throws de.novanic.eventservice.client.config.ConfigurationException occurs when an loading error occurs or if it contains unreadable values.
     */
    public EventServiceConfiguration load() {
        if(isAvailable()) {
            return new RemoteEventServiceConfiguration(getConfigDescription(),
                    readIntParameterValue(ConfigParameter.MIN_WAITING_TIME_TAG),
                    readIntParameterValue(ConfigParameter.MAX_WAITING_TIME_TAG),
                    readIntParameterValue(ConfigParameter.TIMEOUT_TIME_TAG),
                    readIntParameterValue(ConfigParameter.RECONNECT_ATTEMPT_COUNT_TAG),
                    readParameterValue(ConfigParameter.CONNECTION_ID_GENERATOR),
View Full Code Here

    /**
     * Loads the configuration with the loader.
     * @return the loaded configuration ({@link de.novanic.eventservice.config.EventServiceConfiguration})
     */
    public EventServiceConfiguration load() {
        return new RemoteEventServiceConfiguration(DEFAULT_CONFIG_DESCRIPTION, DEFAULT_MIN_WAITING_TIME, DEFAULT_MAX_WAITING_TIME, DEFAULT_TIME_OUT,
                DEFAULT_RECONNECT_ATTEMPTS,
                DEFAULT_CONNECTION_ID_GENERATOR_CLASS_NAME, DEFAULT_CONNECTION_STRATEGY_CLIENT_CONNECTOR, DEFAULT_CONNECTION_STRATEGY_SERVER_CONNECTOR, DEFAULT_CONNECTION_STRATEGY_ENCODING,
                DEFAULT_MAX_EVENTS);
    }
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.config.RemoteEventServiceConfiguration

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.