ResizerIsTimeForResize Method |
Is it time for resizing. Typically implemented with modulo of nth message, but
could be based on elapsed time or something else. The messageCounter starts with 0
for the initial resize and continues with 1 for the first message. Make sure to perform
initial resize before first message (messageCounter == 0), because there is no guarantee
that resize will be done when concurrent messages are in play.
CAUTION: this method is invoked from the thread which tries to send a
message to the pool, i.e. the ActorRef.!() method, hence it may be called
concurrently.
Namespace: Akka.RoutingAssembly: Akka (in Akka.dll) Version: 0.8.0.0 (0.8.0.0)
Syntaxpublic abstract bool IsTimeForResize(
long messageCounter
)
Public MustOverride Function IsTimeForResize (
messageCounter As Long
) As Boolean
public:
virtual bool IsTimeForResize(
long long messageCounter
) abstract
abstract IsTimeForResize :
messageCounter : int64 -> bool
Parameters
- messageCounter
- Type: SystemInt64
[Missing <param name="messageCounter"/> documentation for "M:Akka.Routing.Resizer.IsTimeForResize(System.Int64)"]
Return Value
Type:
Boolean[Missing <returns> documentation for "M:Akka.Routing.Resizer.IsTimeForResize(System.Int64)"]
See Also