public enum Diffusion extends Enum<Diffusion>
Modifier and Type | Class and Description |
---|---|
static interface |
Diffusion.Implementation
The contract with the implementation.
|
Enum Constant and Description |
---|
GLOBALS
The implementation.
|
Modifier and Type | Method and Description |
---|---|
static Credentials.Factory |
credentials()
Returns shared credentials factory to use for creating credentials.
|
static DataTypes |
dataTypes()
Returns data type implementations.
|
static String |
escape(String string)
Escapes special characters in a string that is to be used within a topic
property or a session filter.
|
static SessionTrees.BranchMappingTable.Builder |
newBranchMappingTableBuilder()
Create a new
BranchMappingTable.Builder . |
static RemoteServers.RemoteServer.Builder |
newRemoteServerBuilder()
Deprecated.
since 6.9
This method may only be used to create an old style builder
for secondary initiators. The newer
|
static <B extends RemoteServers.RemoteServer.RemoteServerBuilder<B>> |
newRemoteServerBuilder(Class<B> builderInterface)
Create a new
RemoteServers.RemoteServer.RemoteServerBuilder . |
static ClientControl.SessionEventParameters.Builder |
newSessionEventParametersBuilder()
Create a new
SessionEventParameters.Builder . |
static Metrics.SessionMetricCollector.Builder |
newSessionMetricCollectorBuilder()
Create a new
SessionMetricCollector.Builder . |
static Metrics.TopicMetricCollector.Builder |
newTopicMetricCollectorBuilder()
Create a new
TopicMetricCollector.Builder . |
static TopicSpecification |
newTopicSpecification(TopicType topicType)
Create a new
TopicSpecification for a given topic type. |
static ProxyAuthenticationFactory |
proxyAuthentication()
Returns a proxy authentication scheme factory.
|
static String |
rolesToString(Set<String> roles)
Utility method which converts a set of authorisation roles to the string
format required by the
$Roles session property. |
static SessionId |
sessionIdFromString(String sessionIdAsString)
Parse a
SessionId from a string. |
static SessionFactory |
sessions()
Returns the shared session factory.
|
static Set<String> |
stringToRoles(String string)
Utility method which converts a string of the format required by the
$Roles session property into a mutable set of
strings. |
static TopicSelectors |
topicSelectors()
Returns a parser for topic selector expressions.
|
static UpdateConstraint.Factory |
updateConstraints()
Returns an update constraint factory.
|
static Diffusion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Diffusion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Diffusion GLOBALS
public static Diffusion[] values()
for (Diffusion c : Diffusion.values()) System.out.println(c);
public static Diffusion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static SessionFactory sessions()
public static Credentials.Factory credentials()
public static TopicSelectors topicSelectors()
public static ProxyAuthenticationFactory proxyAuthentication()
public static DataTypes dataTypes()
public static String escape(String string)
This is a convenience method which inserts an escape character '\' before any of the special characters ' " or \.
string
- the string to be escapedpublic static TopicSpecification newTopicSpecification(TopicType topicType)
TopicSpecification
for a given topic type.topicType
- the topic typewithProperty
or
withProperties
methods of the provided specification.public static UpdateConstraint.Factory updateConstraints()
UpdateConstraint
public static Set<String> stringToRoles(String string)
$Roles
session property into a mutable set of
strings.string
- the string with quoted roles separated by whitespace or
commaspublic static String rolesToString(Set<String> roles)
$Roles
session property.roles
- a set of roles$Roles
session propertypublic static SessionTrees.BranchMappingTable.Builder newBranchMappingTableBuilder()
BranchMappingTable.Builder
.SessionTrees
public static Metrics.SessionMetricCollector.Builder newSessionMetricCollectorBuilder()
SessionMetricCollector.Builder
.Metrics
public static SessionId sessionIdFromString(String sessionIdAsString) throws IllegalArgumentException
SessionId
from a string.
This method allows a SessionId
to parsed from a string in the
format as generated by SessionId.toString()
. This is the
representation used in the SESSION_ID
session
property.
sessionIdAsString
- a string, in the format as generated by
SessionId.toString()
SessionId
IllegalArgumentException
- if the string was not compatible with
the format as generated by SessionId.toString()
public static Metrics.TopicMetricCollector.Builder newTopicMetricCollectorBuilder()
TopicMetricCollector.Builder
.Metrics
@Deprecated public static RemoteServers.RemoteServer.Builder newRemoteServerBuilder()
This method may only be used to create an old style builder
for secondary initiators. The newer
newRemoteServerBuilder(Class)
specifying the
secondary initiator builder class should be used in
preference. This method will be removed in a future release.
RemoteServer.Builder
.RemoteServers
public static <B extends RemoteServers.RemoteServer.RemoteServerBuilder<B>> B newRemoteServerBuilder(Class<B> builderInterface) throws IllegalArgumentException
RemoteServers.RemoteServer.RemoteServerBuilder
.B
- builder typebuilderInterface
- the builder interfaceIllegalArgumentException
- if builderInterface
is not a
supported builder interfaceRemoteServers
public static ClientControl.SessionEventParameters.Builder newSessionEventParametersBuilder()
SessionEventParameters.Builder
.Copyright © 2024 DiffusionData Ltd. All Rights Reserved.