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 interfaceThe 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.FactoryReturns shared credentials factory to use for creating credentials.static DataTypesReturns data type implementations.static StringEscapes 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 TopicSpecificationnewTopicSpecification(TopicType topicType) Create a newTopicSpecificationfor a given topic type.static ProxyAuthenticationFactoryReturns a proxy authentication scheme factory.static StringrolesToString(Set<String> roles) Utility method which converts a set of authorisation roles to the string format required by the$Rolessession property.static SessionIdsessionIdFromString(String sessionIdAsString) Parse aSessionIdfrom a string.static SessionFactorysessions()Returns the shared session factory.stringToRoles(String string) Utility method which converts a string of the format required by the$Rolessession property into a mutable set of strings.static TopicSelectorsReturns a parser for topic selector expressions.static UpdateConstraint.FactoryReturns an update constraint factory.static DiffusionReturns 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 newTopicSpecificationfor 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
withPropertyorwithPropertiesmethods 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$Rolessession 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$Rolessession property.- Parameters:
roles- a set of roles- Returns:
- a string representing the supplied roles, formatted as required
by the
$Rolessession 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 aSessionIdfrom a string.This method allows a
SessionIdto parsed from a string in the format as generated bySessionId.toString(). This is the representation used in theSESSION_IDsession 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- ifbuilderInterfaceis not a supported builder interface- Since:
- 6.9
- See Also:
-
newSessionEventParametersBuilder
Create a newClientControl.SessionEventParameters.Builder.- Returns:
- the builder
- Since:
- 6.11
-