public class UrlSpaceConfigurer extends Object implements SpaceConfigurer
IJSpace
instances. The configurer wraps UrlSpaceFactoryBean
and providing a simpler means to configure it
using code.
An example of using it:
SpaceConfigurer spaceConfigurer = new UrlSpaceConfigurer("/./mySpace") .lookupGroups("kimchy"); ... spaceConfigurer.close();
Constructor and Description |
---|
UrlSpaceConfigurer(String url) |
public UrlSpaceConfigurer(String url)
public void setUrlSpaceFactoryBean(UrlSpaceFactoryBean urlSpaceFactoryBean)
public UrlSpaceConfigurer addParameter(String name, String value)
public UrlSpaceConfigurer addProperty(String name, String value)
public UrlSpaceConfigurer addProperties(Properties properties)
public UrlSpaceConfigurer addUrlProperty(String name, String value)
public UrlSpaceConfigurer schema(String schema)
UrlSpaceFactoryBean.setSchema(String)
@Deprecated public UrlSpaceConfigurer fifo(boolean fifo)
FifoSupport
instead.UrlSpaceFactoryBean.setFifo(boolean)
public UrlSpaceConfigurer lookupGroups(String lookupGroups)
public UrlSpaceConfigurer lookupGroups(String... lookupGroups)
public UrlSpaceConfigurer lookupLocators(String lookupLocators)
public UrlSpaceConfigurer lookupLocators(String... lookupLocators)
public UrlSpaceConfigurer lookupTimeout(int lookupTimeout)
public UrlSpaceConfigurer versioned(boolean versioned)
public UrlSpaceConfigurer noWriteLease(boolean noWriteLease)
public UrlSpaceConfigurer mirror(boolean mirror)
UrlSpaceFactoryBean.setMirror(boolean)
public UrlSpaceConfigurer addFilterProvider(FilterProviderFactory filterProviderFactory)
public UrlSpaceConfigurer addSpaceType(SpaceTypeDescriptor spaceType)
public UrlSpaceConfigurer replicationFilterProvider(ReplicationFilterProviderFactory replicationFilterProvider)
public UrlSpaceConfigurer externalDataSource(ManagedDataSource externalDataSource)
public UrlSpaceConfigurer spaceDataSource(SpaceDataSource spaceDataSource)
public UrlSpaceConfigurer spaceSynchronizationEndpoint(SpaceSynchronizationEndpoint synchronizationEndpoint)
public UrlSpaceConfigurer cachePolicy(CachePolicy cachePolicy)
public UrlSpaceConfigurer clusterInfo(ClusterInfo clusterInfo)
public UrlSpaceConfigurer registerForSpaceModeNotifications(boolean registerForSpaceMode)
public UrlSpaceConfigurer secured(boolean secured)
UrlSpaceFactoryBean.setSecured(boolean)
@Deprecated public UrlSpaceConfigurer userDetails(String userName, String password)
credentials(String, String)
instead.@Deprecated public UrlSpaceConfigurer userDetails(UserDetails userDetails)
credentialsProvider(CredentialsProvider)
instead.public UrlSpaceConfigurer credentials(String userName, String password)
public UrlSpaceConfigurer credentials(String token)
public UrlSpaceConfigurer credentialsProvider(CredentialsProvider credentialsProvider)
public UrlSpaceConfigurer securityConfig(SecurityConfig securityConfig)
public UrlSpaceConfigurer primaryBackupListener(ISpaceModeListener primaryBackupListener)
public UrlSpaceConfigurer attributeStore(AttributeStore attributeStore)
public IJSpace create()
AbstractSpaceFactoryBean.afterPropertiesSet()
.public IJSpace space()
AbstractSpaceFactoryBean.afterPropertiesSet()
.space
in interface SpaceConfigurer
create()
public void close()
close
in interface Closeable
close
in interface AutoCloseable
close
in interface SpaceConfigurer
Copyright © GigaSpaces.