Class StatActionInOut.StatActionRegion
java.lang.Object
com.iohao.net.framework.core.flow.internal.StatActionInOut.StatActionRegion
- Enclosing class:
StatActionInOut
Region that manages
StatActionInOut.StatAction instances, one per CmdInfo.- Author:
- 渔民小镇
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEach(BiConsumer<CmdInfo, StatActionInOut.StatAction> action) Iterate over all collected statistics.getStatAction(CmdInfo cmdInfo) Get or create theStatActionInOut.StatActionfor the given command.stream()Return a stream of allStatActionInOut.StatActionvalues.toString()
-
Constructor Details
-
StatActionRegion
public StatActionRegion()
-
-
Method Details
-
getStatAction
Get or create theStatActionInOut.StatActionfor the given command.- Parameters:
cmdInfo- the command identifier- Returns:
- the statistics object for the command
-
forEach
Iterate over all collected statistics.- Parameters:
action- the action to perform for each entry
-
stream
Return a stream of allStatActionInOut.StatActionvalues.- Returns:
- stream of statistics
-
toString
-