Resizer..::..IsTimeForResize 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.Routing
Assembly:  Akka (in Akka.dll)

Syntax


public bool IsTimeForResize(
	long messageCounter
)
Public Function IsTimeForResize ( _
	messageCounter As Long _
) As Boolean
public:
bool^ IsTimeForResize(
	long long^ messageCounter
)

Parameters

messageCounter
Type: Int64

Return Value