public class ParticipantConfig extends Object
Properties
instances.Constructor and Description |
---|
ParticipantConfig() |
Modifier and Type | Method and Description |
---|---|
ParticipantConfig |
copy()
Creates a deep copy of this instance.
|
boolean |
equals(Object obj) |
Set<TransportConfig> |
getEnabledTransports()
Returns the set of transport configurations which represent enabled
transports.
|
TransportConfig |
getOrCreateTransport(String transportName)
Returns a transport and, if necessary, creates the transport config.
|
EventReceivingStrategyFactory |
getReceivingStrategy()
Returns a factory for creating receiving strategy instances.
|
Map<String,TransportConfig> |
getTransports()
Returns the internal map of available transport configurations by their
names.
|
int |
hashCode() |
boolean |
hasTransport(String name)
Indicates whether there is a configuration for a transport with the given
name.
|
boolean |
isIntrospectionEnabled()
Indicates whether introspection should be enabled for participants with
this config or not.
|
void |
setIntrospectionEnabled(boolean introspectionEnabled)
Sets whether introspection shall be enabled or not.
|
void |
setReceivingStrategy(EventReceivingStrategyFactory receivingStrategy)
Setter method for the event receiving strategy factory to use.
|
String |
toString() |
public final Map<String,TransportConfig> getTransports()
public boolean hasTransport(String name)
name
- name of the transporttrue
if a config for the transport exists, else
false
public TransportConfig getOrCreateTransport(String transportName)
transportName
- name of the transportpublic Set<TransportConfig> getEnabledTransports()
public EventReceivingStrategyFactory getReceivingStrategy()
public void setReceivingStrategy(EventReceivingStrategyFactory receivingStrategy)
receivingStrategy
- factory to use for creating receiving strategy instances.public boolean isIntrospectionEnabled()
true
if participants shall be included in the
introspectionpublic void setIntrospectionEnabled(boolean introspectionEnabled)
introspectionEnabled
- true
for enablingpublic ParticipantConfig copy()
Copyright © 2018 CoR-Lab. All rights reserved.