Interface ClusterDependencies
-
public interface ClusterDependencies
The ClusterDependencies interface defines externally provided dependencies for aCluster
.- Since:
- Coherence 12.1.3
- Author:
- pfm 2011.05.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ClusterDependencies.ServiceProvider
A provider of nw service instances.
-
Field Summary
Fields Modifier and Type Field Description static int
EDITION_COMMUNITY
Standard edition (SE).static int
EDITION_DATA_CLIENT
Data Client edition (DC).static int
EDITION_ENTERPRISE
Enterprise edition (EE).static int
EDITION_GRID
Grid Edition (GE).static int
EDITION_REAL_TIME_CLIENT
Real time client edition (RTC).static int
EDITION_STANDARD
Standard edition (SE).static int
LICENSE_MODE_DEVELOPMENT
Development license.static int
LICENSE_MODE_EVALUATION
Evaluation license.static int
LICENSE_MODE_PRODUCTION
Production license.static int
SHUTDOWN_FORCE
Forcefully shutdown all running services before exiting the JVM.static int
SHUTDOWN_GRACEFUL
Gracefully shutdown all running services before exiting the JVM.static int
SHUTDOWN_NONE
Perform no local shutdown logic before exiting the JVM.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addLocalServiceProvider(String sType, ClusterDependencies.ServiceProvider provider)
Register aClusterDependencies.ServiceProvider
.Map<String,AddressProviderFactory>
getAddressProviderMap()
Obtain the address provider map.Filter
getAuthorizedHostFilter()
Obtain the filter that is used by the cluster to determine whether to accept a new Cluster member.ParameterizedBuilderRegistry
getBuilderRegistry()
The registry for all builders associated with the cluster.ActionPolicyBuilder
getClusterActionPolicyBuilder()
Obtain the action policy builder used by the cluster to control cluster membership actions.int
getClusterAnnounceTimeoutMillis()
Obtain the maximum amount of time that the cluster service will announce itself without receiving a response before deciding that a cluster does not exist and a new cluster should be formed.int
getClusterHeartbeatDelayMillis()
Obtain the amount of time between heartbeat messages.int
getClusterTimestampMaxVarianceMillis()
Obtain the maximum variance between sending and receiving broadcast messages when trying to determine the difference between a new cluster Member's wall time and the cluster time.int
getEdition()
Obtain the Coherence product edition.List<String>
getFilterList()
Obtain the list of all filters for the cluster.Map<String,WrapperStreamFactory>
getFilterMap()
Obtain the map of filter name to WrapperStreamFactory.InetAddress
getGroupAddress()
Obtain the multicast group address to listen/publish on.int
getGroupBufferSize()
Obtain the preferred size for the multicast datagram socket input buffer (SO_RCVBUF).InetAddress
getGroupInterface()
Obtain the IP address of the interface (e.g. the NIC) that the MulticastSocket will open a socket on.int
getGroupListenerPriority()
Obtain the priority of the PacketListener daemon thread.int
getGroupPort()
Obtain the multicast port number that the cluster will listen/publish on.int
getGroupTimeToLive()
Obtain the multicast time-to-live setting for the cluster.long
getGuardTimeoutMillis()
Obtain the default Guard timeout.int
getIpMonitorAttempts()
Obtain the number of connection attempts that the IpMonitor will use in determining if IP connectivity exists to other hosts.int
getIpMonitorPriority()
Obtain the priority of the IpMonitor daemon thread.long
getIpMonitorTimeoutMillis()
Obtain the timeout that the IpMonitor will use in determining if IP connectivity exists to other hosts.String
getLambdasSerializationMode()
Obtain the lambdas serialization mode, i.e. static, dynamic or empty string, if not set.InetAddress
getLocalAddress()
Obtain the unicast IP address that the cluster member will listen/publish on or null for default.int
getLocalBufferSize()
Obtain the preferred size for the unicast socket input buffer (SO_RCVBUF).InetAddress
getLocalDiscoveryAddress()
Return the InetAddress on which this member will listen for discovery requests.int
getLocalListenerPriority()
Obtain the priority of the "local" PacketListener daemon thread.int
getLocalPort()
Obtain the unicast port number that the member will listen on.int
getLocalPortAutoAdjust()
Return the maximum unicast port that can be auto-adjusted to.ClusterDependencies.ServiceProvider
getLocalServiceProvider(String sType)
Obtain aClusterDependencies.ServiceProvider
that can build an instance of a given service type.int
getLostPacketThreshold()
Obtain the number of sequential packets which may be lost before declaring a member paused, and starting to trickle packets.MemberIdentity
getMemberIdentity()
Obtain the member identity.int
getMode()
Obtain the Mode for the "license type", i.e. evaluation, development or production use.int
getOutstandingPacketMaximum()
Obtain the maximum allowable flow-control rate measured in packets.int
getOutstandingPacketMinimum()
Obtain the minimum allowable flow-control rate measured in packets.double
getPacketBundlingAggression()
Obtain the aggression factor to use in deferring a packet once it has reached the average bundle size.long
getPacketBundlingThresholdNanos()
Obtain the maximum amount of time to defer a packet while waiting for additional packets to bundle.int
getPacketMaxLength()
Obtain the maximum size, in bytes, of the network packets that will be sent and received on the local and group sockets.int
getPacketPreferredLength()
Obtain the preferred size, in bytes, of the network packets that will be sent and received on the local sockets.int
getPublisherAckDelayMillis()
Obtain the amount of time that the Publisher may delay sending an ACK packet.int
getPublisherCloggedCount()
Obtain the maximum number of packets in the send and re-send queues that the Publisher will tolerate before determining that it is clogged and must slow down client requests (requests from local non-system threads).int
getPublisherCloggedDelayMillis()
Obtain the amount of time that the Publisher will pause a client thread that is trying to send a message when the Publisher is clogged.int
getPublisherGroupThreshold()
Obtain the group threshold which is used to determine whether a packet will be sent via unicast or multicast.int
getPublisherNackDelayMillis()
Obtain the amount of time that the Publisher will delay sending a NACK packet.int
getPublisherPriority()
Obtain the priority of the PacketPublisher daemon thread.int
getPublisherResendDelayMillis()
Obtain the minimum amount of time before a packet is resent across the network if it has not been acknowledged.int
getPublisherResendTimeoutMillis()
Obtain the maximum amount of time that the publisher will be resending a packet before the packet recipient is considered departed.int
getPublisherSocketBufferSize()
Obtain the preferred size of the unicast socket output buffer (SO_SNDBUF).int
getReceiverPriority()
Obtain the priority of the PacketReceiver daemon thread.String
getReliableTransport()
Obtain the name of the default reliable transport used by this node.Map<String,SerializerFactory>
getSerializerMap()
Obtain the Serializer map.ServiceFailurePolicyBuilder
getServiceFailurePolicyBuilder()
Obtain the service failure policy builder.Map<String,List<String>>
getServiceFilterMap()
Obtain a map of service name to filter list.Map<String,String>
getServiceMap()
Obtain the service map.int
getShutdownHookOption()
Obtain the value of the ShutdownHook setting.Map<String,SnapshotArchiverFactory>
getSnapshotArchiverMap()
Obtain the snapshot archiver map.SocketProviderFactory
getSocketProviderFactory()
Obtain the SocketProviderFactory associated with the cluster.int
getSpeakerPriority()
Obtain the priority of the PacketSpeaker daemon thread.int
getSpeakerVolumeMinimum()
Obtain the minimum number of packets which must be ready to be sent in order for the speaker to be utilized.int
getTcpBacklog()
Obtain the listener backlog for TCMP's TCP listener.SocketOptions
getTcpDatagramSocketOptions()
Obtain the SocketOptions to apply when TCMP runs on a TcpDatagramSocket.SocketOptions
getTcpRingSocketOptions()
Obtain the TcpRing SocketOptions.SocketProviderBuilder
getUnicastSocketProviderBuilder()
Obtain the cluster's unicastSocketProviderBuilder
.XmlElement
getUnicastSocketProviderXml()
Deprecated.AddressProvider
getWellKnownAddresses()
Obtain the AddressProvider that provides the well known addresses (WKA) represented by InetSocketAddress objects.boolean
isFlowControlEnabled()
Determine whether the TCMP flow control is enabled.boolean
isIpMonitorEnabled()
Determine whether the IpMonitor is enabled.boolean
isLocalPortAutoAdjust()
Determine whether the unicast listener local port(s) will be automatically selected if the specified port cannot be bound to (e.g. it is already in use.)boolean
isReceiverNackEnabled()
Determine whether the PacketReceiver will use negative acknowledgments (NACK packet requests) to pro-actively respond to known missing packets.boolean
isSpeakerEnabled()
Determine whether the packet speaker is enabled.boolean
isTcmpEnabled()
Determine whether the TCMP is enabled.boolean
isTcpRingEnabled()
Determine whether the TcpRing is enabled.void
registerResources(ResourceRegistry registry)
Register all the custom resources contained in thisClusterDependencies
with the target registry.
-
-
-
Field Detail
-
SHUTDOWN_NONE
static final int SHUTDOWN_NONE
Perform no local shutdown logic before exiting the JVM.- See Also:
- Constant Field Values
-
SHUTDOWN_FORCE
static final int SHUTDOWN_FORCE
Forcefully shutdown all running services before exiting the JVM.- See Also:
- Constant Field Values
-
SHUTDOWN_GRACEFUL
static final int SHUTDOWN_GRACEFUL
Gracefully shutdown all running services before exiting the JVM.- See Also:
- Constant Field Values
-
EDITION_DATA_CLIENT
static final int EDITION_DATA_CLIENT
Data Client edition (DC).- See Also:
- Constant Field Values
-
EDITION_REAL_TIME_CLIENT
static final int EDITION_REAL_TIME_CLIENT
Real time client edition (RTC).- See Also:
- Constant Field Values
-
EDITION_STANDARD
static final int EDITION_STANDARD
Standard edition (SE).- See Also:
- Constant Field Values
-
EDITION_COMMUNITY
static final int EDITION_COMMUNITY
Standard edition (SE).- See Also:
- Constant Field Values
-
EDITION_ENTERPRISE
static final int EDITION_ENTERPRISE
Enterprise edition (EE).- See Also:
- Constant Field Values
-
EDITION_GRID
static final int EDITION_GRID
Grid Edition (GE).- See Also:
- Constant Field Values
-
LICENSE_MODE_EVALUATION
static final int LICENSE_MODE_EVALUATION
Evaluation license.- See Also:
- Constant Field Values
-
LICENSE_MODE_DEVELOPMENT
static final int LICENSE_MODE_DEVELOPMENT
Development license.- See Also:
- Constant Field Values
-
LICENSE_MODE_PRODUCTION
static final int LICENSE_MODE_PRODUCTION
Production license.- See Also:
- Constant Field Values
-
-
Method Detail
-
getAuthorizedHostFilter
Filter getAuthorizedHostFilter()
Obtain the filter that is used by the cluster to determine whether to accept a new Cluster member. TheFilter.evaluate(T)
method will be passed the java.net.InetAddress of the potential member. Implementations should return "true" to allow the new member to join the cluster.- Returns:
- the authorized host filter
-
getClusterActionPolicyBuilder
ActionPolicyBuilder getClusterActionPolicyBuilder()
Obtain the action policy builder used by the cluster to control cluster membership actions.- Returns:
- the cluster action policy builder
-
getClusterAnnounceTimeoutMillis
int getClusterAnnounceTimeoutMillis()
Obtain the maximum amount of time that the cluster service will announce itself without receiving a response before deciding that a cluster does not exist and a new cluster should be formed.- Returns:
- the cluster announce timeout milliseconds
-
getClusterHeartbeatDelayMillis
int getClusterHeartbeatDelayMillis()
Obtain the amount of time between heartbeat messages.- Returns:
- the cluster heartbeat delay
-
getClusterTimestampMaxVarianceMillis
int getClusterTimestampMaxVarianceMillis()
Obtain the maximum variance between sending and receiving broadcast messages when trying to determine the difference between a new cluster Member's wall time and the cluster time.The smaller the variance, the more certain one can be that the cluster time will be closer between multiple systems running in the cluster; however, the process of joining the cluster will be extended until an exchange of Messages can occur within the specified variance.
Normally, a value as small as 20 milliseconds is sufficient, but with heavily loaded clusters and multiple network hops it is possible that a larger value would be necessary.
- Returns:
- the cluster timestamp maximum variance
-
getEdition
int getEdition()
Obtain the Coherence product edition.The valid value are:
- 0=Data Client (DC)
- 1=Real-Time Client (RTC)
- 2=Standard Edition (SE)
- 3=Community Edition (CE)
- 4=Enterprise Edition (EE)
- 5=Grid Edition (GE)
- Returns:
- the edition
-
getFilterList
List<String> getFilterList()
Obtain the list of all filters for the cluster.- Returns:
- the filters list
-
getServiceFilterMap
Map<String,List<String>> getServiceFilterMap()
Obtain a map of service name to filter list. Each map entry has the list of filters that will be used by the service.- Returns:
- the service filter map
-
getFilterMap
Map<String,WrapperStreamFactory> getFilterMap()
Obtain the map of filter name to WrapperStreamFactory.- Returns:
- the filter map
-
getLocalDiscoveryAddress
InetAddress getLocalDiscoveryAddress()
Return the InetAddress on which this member will listen for discovery requests.- Returns:
- the local discovery address.
-
getGroupAddress
InetAddress getGroupAddress()
Obtain the multicast group address to listen/publish on.- Returns:
- the multicast group address, or null if WKA is enabled
-
getGroupBufferSize
int getGroupBufferSize()
Obtain the preferred size for the multicast datagram socket input buffer (SO_RCVBUF).A negative value indicates that this value specifies the number of packets, rather than number of bytes for the buffer.
- Returns:
- the group buffer size
-
getGroupInterface
InetAddress getGroupInterface()
Obtain the IP address of the interface (e.g. the NIC) that the MulticastSocket will open a socket on.- Returns:
- the group interface
-
getGroupListenerPriority
int getGroupListenerPriority()
Obtain the priority of the PacketListener daemon thread.- Returns:
- the group listener priority
-
getGroupPort
int getGroupPort()
Obtain the multicast port number that the cluster will listen/publish on.- Returns:
- the group port
-
getGroupTimeToLive
int getGroupTimeToLive()
Obtain the multicast time-to-live setting for the cluster.The TTL sets the IP time-to-live for DatagramPackets sent to a MulticastGroup, which specifies how many "hops" that the packet will be forwarded on the network before it expires. The ttl must be in the range 0 <= ttl <= 255.
- Returns:
- the TTL value
-
getGuardTimeoutMillis
long getGuardTimeoutMillis()
Obtain the default Guard timeout.- Returns:
- the Guard Timeout
-
getIpMonitorAttempts
int getIpMonitorAttempts()
Obtain the number of connection attempts that the IpMonitor will use in determining if IP connectivity exists to other hosts.- Returns:
- number of IP monitor attempts
-
getIpMonitorPriority
int getIpMonitorPriority()
Obtain the priority of the IpMonitor daemon thread.- Returns:
- IP monitor priority
-
getIpMonitorTimeoutMillis
long getIpMonitorTimeoutMillis()
Obtain the timeout that the IpMonitor will use in determining if IP connectivity exists to other hosts.- Returns:
- the IP monitor timeout
-
getLocalBufferSize
int getLocalBufferSize()
Obtain the preferred size for the unicast socket input buffer (SO_RCVBUF).A negative value indicates that this value specifies the number of packets, rather then number bytes for the buffer.
- Returns:
- the local buffer size
-
getLocalListenerPriority
int getLocalListenerPriority()
Obtain the priority of the "local" PacketListener daemon thread.- Returns:
- the local listener priority
-
getLocalAddress
InetAddress getLocalAddress()
Obtain the unicast IP address that the cluster member will listen/publish on or null for default.- Returns:
- the local address, or null
-
getLocalPort
int getLocalPort()
Obtain the unicast port number that the member will listen on.- Returns:
- the local port
-
getLostPacketThreshold
int getLostPacketThreshold()
Obtain the number of sequential packets which may be lost before declaring a member paused, and starting to trickle packets.- Returns:
- the lost packet threshold
-
getMemberIdentity
MemberIdentity getMemberIdentity()
Obtain the member identity.- Returns:
- the member identity
-
getMode
int getMode()
Obtain the Mode for the "license type", i.e. evaluation, development or production use.The valid values are:
- Returns:
- the license mode
-
getOutstandingPacketMaximum
int getOutstandingPacketMaximum()
Obtain the maximum allowable flow-control rate measured in packets.- Returns:
- the maximum number of outstanding packets
-
getOutstandingPacketMinimum
int getOutstandingPacketMinimum()
Obtain the minimum allowable flow-control rate measured in packets.- Returns:
- the minimum number of outstanding packets
-
getPacketBundlingAggression
double getPacketBundlingAggression()
Obtain the aggression factor to use in deferring a packet once it has reached the average bundle size.- Returns:
- the packet bundling aggression
-
getPacketBundlingThresholdNanos
long getPacketBundlingThresholdNanos()
Obtain the maximum amount of time to defer a packet while waiting for additional packets to bundle.- Returns:
- the packet bundling threshold
-
getPacketMaxLength
int getPacketMaxLength()
Obtain the maximum size, in bytes, of the network packets that will be sent and received on the local and group sockets. This value should be greater or equal to 256.- Returns:
- the maximum packet length
-
getPacketPreferredLength
int getPacketPreferredLength()
Obtain the preferred size, in bytes, of the network packets that will be sent and received on the local sockets.This value should be greater or equal to 256. If set to zero the value will be automatically computed based upon the MTU of the network interface associated with
the local address
.- Returns:
- the preferred packet length
-
getPublisherAckDelayMillis
int getPublisherAckDelayMillis()
Obtain the amount of time that the Publisher may delay sending an ACK packet.- Returns:
- the publisher ACK delay
-
getPublisherSocketBufferSize
int getPublisherSocketBufferSize()
Obtain the preferred size of the unicast socket output buffer (SO_SNDBUF).A negative value indicates that this value specifies the number of packets, rather than the number bytes for the buffer. A value of zero results in a value being automatically calculated.
- Returns:
- the publisher buffer size
-
getPublisherCloggedCount
int getPublisherCloggedCount()
Obtain the maximum number of packets in the send and re-send queues that the Publisher will tolerate before determining that it is clogged and must slow down client requests (requests from local non-system threads). Zero means no limit. This property prevents most unexpected out-of-memory conditions by limiting the size of the re-send queue.- Returns:
- the publisher clogged count
-
getPublisherCloggedDelayMillis
int getPublisherCloggedDelayMillis()
Obtain the amount of time that the Publisher will pause a client thread that is trying to send a message when the Publisher is clogged. The Publisher will not allow the message to go through until the clog is resolved, and will repeatedly pause the thread for the duration specified by this value.- Returns:
- the publisher clogged delay
-
getPublisherGroupThreshold
int getPublisherGroupThreshold()
Obtain the group threshold which is used to determine whether a packet will be sent via unicast or multicast.This is a percentage value and is in the range of 1% to 100%. In a cluster of "n" nodes, a particular node sending a packet to a set of others (not counting self) destination nodes of size "d" (in the range of 0 to n-1), the packet will be sent multicast if and only if the following holds true:
- The packet is being sent over the network to more than one other node: (d > 1);
- The number of nodes is greater than the threshold: (d > (n-1) * (threshold/100))
- Returns:
- the publisher group threshold
-
getPublisherNackDelayMillis
int getPublisherNackDelayMillis()
Obtain the amount of time that the Publisher will delay sending a NACK packet.- Returns:
- the publisher NACK delay
-
getPublisherPriority
int getPublisherPriority()
Obtain the priority of the PacketPublisher daemon thread.- Returns:
- the publisher priority
-
getPublisherResendDelayMillis
int getPublisherResendDelayMillis()
Obtain the minimum amount of time before a packet is resent across the network if it has not been acknowledged.This value is also used for other situations in which packets need to be resent, such as cluster announcements.
- Returns:
- the publisher resend delay
-
getPublisherResendTimeoutMillis
int getPublisherResendTimeoutMillis()
Obtain the maximum amount of time that the publisher will be resending a packet before the packet recipient is considered departed.- Returns:
- the publisher resend timeout
-
getReceiverPriority
int getReceiverPriority()
Obtain the priority of the PacketReceiver daemon thread.- Returns:
- the receiver priority
-
getReliableTransport
String getReliableTransport()
Obtain the name of the default reliable transport used by this node.- Returns:
- the default reliable transport name
-
getServiceFailurePolicyBuilder
ServiceFailurePolicyBuilder getServiceFailurePolicyBuilder()
Obtain the service failure policy builder.- Returns:
- the service failure policy builder
-
getShutdownHookOption
int getShutdownHookOption()
Obtain the value of the ShutdownHook setting.The valid values are the SHUTDOWN_* constants.
- Returns:
- the value of the ShutdownHook setting
-
getSocketProviderFactory
SocketProviderFactory getSocketProviderFactory()
Obtain the SocketProviderFactory associated with the cluster.- Returns:
- the socket provider factory
-
getServiceMap
Map<String,String> getServiceMap()
Obtain the service map.- Returns:
- the map of service class information indexed by service name
-
getSerializerMap
Map<String,SerializerFactory> getSerializerMap()
Obtain the Serializer map.- Returns:
- the Serializer map
-
getSnapshotArchiverMap
Map<String,SnapshotArchiverFactory> getSnapshotArchiverMap()
Obtain the snapshot archiver map.- Returns:
- the snapshot archiver map
-
getAddressProviderMap
Map<String,AddressProviderFactory> getAddressProviderMap()
Obtain the address provider map.- Returns:
- the address provider map
-
getBuilderRegistry
ParameterizedBuilderRegistry getBuilderRegistry()
The registry for all builders associated with the cluster. A builder can be looked up via the class it produces and a name for the builder usingParameterizedBuilderRegistry.getBuilder(Class, String)
or just by the class it builds if there are no named builders.Currently, only
SerializerFactory
,ParameterizedBuilder
<PersistenceEnvironment
> andParameterizedBuilder
<StorageAccessAuthorizer
> are registered by the implementation.All registered Builders implementing
Disposable
will be disposed.- Returns:
- the
ParameterizedBuilderRegistry
-
getUnicastSocketProviderXml
@Deprecated XmlElement getUnicastSocketProviderXml()
Deprecated.Obtain the cluster's UnicastSocketProvider XML configuration.- Returns:
- the unicast socket provider xml
-
getUnicastSocketProviderBuilder
SocketProviderBuilder getUnicastSocketProviderBuilder()
Obtain the cluster's unicastSocketProviderBuilder
.- Returns:
- unicast SocketProviderBuilder
- Since:
- Coherence 12.2.1.1
-
getSpeakerPriority
int getSpeakerPriority()
Obtain the priority of the PacketSpeaker daemon thread.- Returns:
- the PacketSpeaker priority
-
getSpeakerVolumeMinimum
int getSpeakerVolumeMinimum()
Obtain the minimum number of packets which must be ready to be sent in order for the speaker to be utilized. If the number of packets is less then this setting then the publisher will send the packets itself. A value of 0 will cause all packets to be handled by the speaker, a high value (Integer.MAX_VALUE) will cause all packets to be sent by the publisher.If this value is negative, the actual value will be based on the socket's send buffer size.
- Returns:
- the PacketSpeaker minimum volume
-
isSpeakerEnabled
boolean isSpeakerEnabled()
Determine whether the packet speaker is enabled.- Returns:
- true if the speaker is enabled
-
getTcpBacklog
int getTcpBacklog()
Obtain the listener backlog for TCMP's TCP listener.- Returns:
- the TCP listener backlog
-
getTcpDatagramSocketOptions
SocketOptions getTcpDatagramSocketOptions()
Obtain the SocketOptions to apply when TCMP runs on a TcpDatagramSocket.- Returns:
- the TCMP datagram socket options
-
getTcpRingSocketOptions
SocketOptions getTcpRingSocketOptions()
Obtain the TcpRing SocketOptions.- Returns:
- the TcpRing socket options
-
getWellKnownAddresses
AddressProvider getWellKnownAddresses()
Obtain the AddressProvider that provides the well known addresses (WKA) represented by InetSocketAddress objects.- Returns:
- the well known addresses, or null for multicast
-
isFlowControlEnabled
boolean isFlowControlEnabled()
Determine whether the TCMP flow control is enabled.- Returns:
- true if TCMP flow control is enabled
-
isIpMonitorEnabled
boolean isIpMonitorEnabled()
Determine whether the IpMonitor is enabled.- Returns:
- true if IpMonitor is enabled
-
isLocalPortAutoAdjust
boolean isLocalPortAutoAdjust()
Determine whether the unicast listener local port(s) will be automatically selected if the specified port cannot be bound to (e.g. it is already in use.)- Returns:
- true if unicast listener local port is automatically selected
-
getLocalPortAutoAdjust
int getLocalPortAutoAdjust()
Return the maximum unicast port that can be auto-adjusted to.- Returns:
- the maximum unicast port that can be auto-adjusted to
-
isReceiverNackEnabled
boolean isReceiverNackEnabled()
Determine whether the PacketReceiver will use negative acknowledgments (NACK packet requests) to pro-actively respond to known missing packets.- Returns:
- true if NACK is enabled
-
isTcmpEnabled
boolean isTcmpEnabled()
Determine whether the TCMP is enabled.- Returns:
- true if TCMP is enabled
-
isTcpRingEnabled
boolean isTcpRingEnabled()
Determine whether the TcpRing is enabled.- Returns:
- true if TcpRing is enabled
-
registerResources
void registerResources(ResourceRegistry registry)
Register all the custom resources contained in thisClusterDependencies
with the target registry.- Parameters:
registry
- the targetResourceRegistry
to register resources with
-
addLocalServiceProvider
void addLocalServiceProvider(String sType, ClusterDependencies.ServiceProvider provider)
Register aClusterDependencies.ServiceProvider
.- Parameters:
sType
- the type of the service providedprovider
- theClusterDependencies.ServiceProvider
instance
-
getLocalServiceProvider
ClusterDependencies.ServiceProvider getLocalServiceProvider(String sType)
Obtain aClusterDependencies.ServiceProvider
that can build an instance of a given service type.- Parameters:
sType
- the service type- Returns:
- a
ClusterDependencies.ServiceProvider
that can build an instance of a given service type
-
getLambdasSerializationMode
String getLambdasSerializationMode()
Obtain the lambdas serialization mode, i.e. static, dynamic or empty string, if not set.- Returns:
- the lambdas serialization mode or empty string if not set.
- Since:
- 23.09
-
-