Record Class NetServerSetting
java.lang.Object
java.lang.Record
com.iohao.net.server.NetServerSetting
public record NetServerSetting(int netId, io.aeron.Aeron aeron, CmdRegions cmdRegions, ConnectionManager connectionManager, SkeletonThreadPipeline skeletonThreadPipeline, CommunicationAggregation communicationAggregation, FindServer findServer, BalancedManager balancedManager, FutureManager futureManager, List<ServerShutdownHook> serverShutdownHookList, List<ServerListener> listenerList, Publisher publisher, ConvenientCommunication convenientCommunication)
extends Record
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-09-08
-
Constructor Summary
ConstructorsConstructorDescriptionNetServerSetting(int netId, io.aeron.Aeron aeron, CmdRegions cmdRegions, ConnectionManager connectionManager, SkeletonThreadPipeline skeletonThreadPipeline, CommunicationAggregation communicationAggregation, FindServer findServer, BalancedManager balancedManager, FutureManager futureManager, List<ServerShutdownHook> serverShutdownHookList, List<ServerListener> listenerList, Publisher publisher, ConvenientCommunication convenientCommunication) Creates an instance of aNetServerSettingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionio.aeron.Aeronaeron()Returns the value of theaeronrecord component.Returns the value of thebalancedManagerrecord component.Returns the value of thecmdRegionsrecord component.Returns the value of thecommunicationAggregationrecord component.Returns the value of theconnectionManagerrecord component.Returns the value of theconvenientCommunicationrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefindServerrecord component.Returns the value of thefutureManagerrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelistenerListrecord component.intnetId()Returns the value of thenetIdrecord component.Returns the value of thepublisherrecord component.Returns the value of theserverShutdownHookListrecord component.Returns the value of theskeletonThreadPipelinerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
NetServerSetting
public NetServerSetting(int netId, io.aeron.Aeron aeron, CmdRegions cmdRegions, ConnectionManager connectionManager, SkeletonThreadPipeline skeletonThreadPipeline, CommunicationAggregation communicationAggregation, FindServer findServer, BalancedManager balancedManager, FutureManager futureManager, List<ServerShutdownHook> serverShutdownHookList, List<ServerListener> listenerList, Publisher publisher, ConvenientCommunication convenientCommunication) Creates an instance of aNetServerSettingrecord class.- Parameters:
netId- the value for thenetIdrecord componentaeron- the value for theaeronrecord componentcmdRegions- the value for thecmdRegionsrecord componentconnectionManager- the value for theconnectionManagerrecord componentskeletonThreadPipeline- the value for theskeletonThreadPipelinerecord componentcommunicationAggregation- the value for thecommunicationAggregationrecord componentfindServer- the value for thefindServerrecord componentbalancedManager- the value for thebalancedManagerrecord componentfutureManager- the value for thefutureManagerrecord componentserverShutdownHookList- the value for theserverShutdownHookListrecord componentlistenerList- the value for thelistenerListrecord componentpublisher- the value for thepublisherrecord componentconvenientCommunication- the value for theconvenientCommunicationrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
netId
public int netId()Returns the value of thenetIdrecord component.- Returns:
- the value of the
netIdrecord component
-
aeron
public io.aeron.Aeron aeron()Returns the value of theaeronrecord component.- Returns:
- the value of the
aeronrecord component
-
cmdRegions
Returns the value of thecmdRegionsrecord component.- Returns:
- the value of the
cmdRegionsrecord component
-
connectionManager
Returns the value of theconnectionManagerrecord component.- Returns:
- the value of the
connectionManagerrecord component
-
skeletonThreadPipeline
Returns the value of theskeletonThreadPipelinerecord component.- Returns:
- the value of the
skeletonThreadPipelinerecord component
-
communicationAggregation
Returns the value of thecommunicationAggregationrecord component.- Returns:
- the value of the
communicationAggregationrecord component
-
findServer
Returns the value of thefindServerrecord component.- Returns:
- the value of the
findServerrecord component
-
balancedManager
Returns the value of thebalancedManagerrecord component.- Returns:
- the value of the
balancedManagerrecord component
-
futureManager
Returns the value of thefutureManagerrecord component.- Returns:
- the value of the
futureManagerrecord component
-
serverShutdownHookList
Returns the value of theserverShutdownHookListrecord component.- Returns:
- the value of the
serverShutdownHookListrecord component
-
listenerList
Returns the value of thelistenerListrecord component.- Returns:
- the value of the
listenerListrecord component
-
publisher
Returns the value of thepublisherrecord component.- Returns:
- the value of the
publisherrecord component
-
convenientCommunication
Returns the value of theconvenientCommunicationrecord component.- Returns:
- the value of the
convenientCommunicationrecord component
-