com.graphaware.runtime.config.FluentTimerDrivenModuleConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of runtime Show documentation
Show all versions of runtime Show documentation
Runtime for GraphAware Runtime Modules
/*
* Copyright (c) 2013-2016 GraphAware
*
* This file is part of the GraphAware Framework.
*
* GraphAware Framework is free software: you can redistribute it and/or modify it under the terms of
* the GNU General Public License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
* See the GNU General Public License for more details. You should have received a copy of
* the GNU General Public License along with this program. If not, see
* .
*/
package com.graphaware.runtime.config;
/**
* {@link TxDrivenModuleConfiguration} with fluent interface.
* Intended for users of Neo4j in embedded mode for programmatic configuration.
*/
public final class FluentTimerDrivenModuleConfiguration extends BaseTimerDrivenModuleConfiguration {
/**
* Creates an instance with default values, i.e., with {@link com.graphaware.runtime.config.TimerDrivenModuleConfiguration.InstanceRolePolicy#MASTER_ONLY}.
*
* @return The {@link FluentTimerDrivenModuleConfiguration} instance.
*/
public static FluentTimerDrivenModuleConfiguration defaultConfiguration() {
return new FluentTimerDrivenModuleConfiguration();
}
/**
* Create a new configuration with {@link com.graphaware.runtime.config.TimerDrivenModuleConfiguration.InstanceRolePolicy#MASTER_ONLY}.
*/
private FluentTimerDrivenModuleConfiguration() {
super(InstanceRolePolicy.MASTER_ONLY);
}
/**
* Create a new configuration.
*
* @param instanceRolePolicy of the configuration.
*/
private FluentTimerDrivenModuleConfiguration(InstanceRolePolicy instanceRolePolicy) {
super(instanceRolePolicy);
}
/**
* {@inheritDoc}
*/
@Override
protected FluentTimerDrivenModuleConfiguration newInstance(InstanceRolePolicy instanceRolePolicy) {
return new FluentTimerDrivenModuleConfiguration(instanceRolePolicy);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy