Enum Class Diffusion
- All Implemented Interfaces:
Serializable
,Comparable<Diffusion>
,Constable
Provides facilities that are shared between sessions.
- Since:
- 5.0
- Author:
- DiffusionData Limited
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
The contract with the implementation.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Credentials.Factory
Returns shared credentials factory to use for creating credentials.static DataTypes
Returns data type implementations.static String
Escapes special characters in a string that is to be used within a topic property or a session filter.Create a newSessionTrees.BranchMappingTable.Builder
.Deprecated.since 6.9static <B extends RemoteServers.RemoteServer.RemoteServerBuilder<B>>
BnewRemoteServerBuilder
(Class<B> builderInterface) Create a newRemoteServers.RemoteServer.RemoteServerBuilder
.Create a newClientControl.SessionEventParameters.Builder
.Create a newMetrics.SessionMetricCollector.Builder
.Create a newMetrics.TopicMetricCollector.Builder
.static TopicSpecification
newTopicSpecification
(TopicType topicType) Create a newTopicSpecification
for a given topic type.static ProxyAuthenticationFactory
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 aSessionId
from a string.static SessionFactory
sessions()
Returns the shared session factory.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
Returns a parser for topic selector expressions.static UpdateConstraint.Factory
Returns an update constraint factory.static Diffusion
Returns the enum constant of this class with the specified name.static Diffusion[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
GLOBALS
The implementation.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
sessions
Returns the shared session factory.- Returns:
- session factory.
-
credentials
Returns shared credentials factory to use for creating credentials.- Returns:
- credentials factory.
-
topicSelectors
Returns a parser for topic selector expressions.- Returns:
- topic selectors parser
-
proxyAuthentication
Returns a proxy authentication scheme factory.- Returns:
- proxy authentication scheme factory
-
dataTypes
Returns data type implementations.- Since:
- 5.7
-
escape
Escapes special characters in a string that is to be used within a topic property or a session filter.This is a convenience method which inserts an escape character '\' before any of the special characters ' " or \.
- Parameters:
string
- the string to be escaped- Returns:
- the string value with escape characters inserted as appropriate
- Since:
- 6.1
-
newTopicSpecification
Create a newTopicSpecification
for a given topic type.- Parameters:
topicType
- the topic type- Returns:
- a new immutable specification with no properties set. New
specifications with different properties can be produced using
the
withProperty
orwithProperties
methods of the provided specification. - Since:
- 6.2
-
updateConstraints
Returns an update constraint factory.- Returns:
- update constraint factory
- Since:
- 6.2
- See Also:
-
stringToRoles
Utility method which converts a string of the format required by the$Roles
session property into a mutable set of strings.- Parameters:
string
- the string with quoted roles separated by whitespace or commas- Returns:
- set of roles
- Since:
- 6.2
-
rolesToString
Utility method which converts a set of authorisation roles to the string format required by the$Roles
session property.- Parameters:
roles
- a set of roles- Returns:
- a string representing the supplied roles, formatted as required
by the
$Roles
session property - Since:
- 6.2
-
newBranchMappingTableBuilder
Create a newSessionTrees.BranchMappingTable.Builder
.- Since:
- 6.7
- See Also:
-
newSessionMetricCollectorBuilder
Create a newMetrics.SessionMetricCollector.Builder
.- Since:
- 6.7
- See Also:
-
sessionIdFromString
public static SessionId sessionIdFromString(String sessionIdAsString) throws IllegalArgumentException Parse aSessionId
from a string.This method allows a
SessionId
to parsed from a string in the format as generated bySessionId.toString()
. This is the representation used in theSESSION_ID
session property.- Parameters:
sessionIdAsString
- a string, in the format as generated bySessionId.toString()
- Returns:
- the
SessionId
- Throws:
IllegalArgumentException
- if the string was not compatible with the format as generated bySessionId.toString()
- Since:
- 6.7
-
newTopicMetricCollectorBuilder
Create a newMetrics.TopicMetricCollector.Builder
.- Since:
- 6.7
- See Also:
-
newRemoteServerBuilder
Deprecated.since 6.9This 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.Create a newRemoteServers.RemoteServer.Builder
.- Since:
- 6.7
- See Also:
-
newRemoteServerBuilder
public static <B extends RemoteServers.RemoteServer.RemoteServerBuilder<B>> B newRemoteServerBuilder(Class<B> builderInterface) throws IllegalArgumentException Create a newRemoteServers.RemoteServer.RemoteServerBuilder
.- Type Parameters:
B
- builder type- Parameters:
builderInterface
- the builder interface- Returns:
- the builder
- Throws:
IllegalArgumentException
- ifbuilderInterface
is not a supported builder interface- Since:
- 6.9
- See Also:
-
newSessionEventParametersBuilder
Create a newClientControl.SessionEventParameters.Builder
.- Returns:
- the builder
- Since:
- 6.11
-