ActorGarbageCollectionSettings Class

  • java.lang.Object
    • microsoft.servicefabric.actors.runtime.ActorGarbageCollectionSettings

public class ActorGarbageCollectionSettings

Settings to configures Garbage Collection behavior of Actor Service.

Constructor Summary

Constructor Description
ActorGarbageCollectionSettings()

Initializes a new instance of the ActorGarbageCollectionSettings class.

ActorGarbageCollectionSettings(long idleTimeoutInSeconds, long scanIntervalInSeconds)

Initializes a new instance of the ActorGarbageCollectionSettings class.

Method Summary

Modifier and Type Method and Description
long getIdleTimeoutInSeconds()

Gets time interval to wait before garbage collecting an actor which is not in use.

long getScanIntervalInSeconds()

Gets time interval to run Actor Garbage Collection scan.

Constructor Details

ActorGarbageCollectionSettings

public ActorGarbageCollectionSettings()

Initializes a new instance of the ActorGarbageCollectionSettings class.

ActorGarbageCollectionSettings

public ActorGarbageCollectionSettings(long idleTimeoutInSeconds, long scanIntervalInSeconds)

Initializes a new instance of the ActorGarbageCollectionSettings class.

Parameters:

idleTimeoutInSeconds - Time interval to wait before garbage collecting an actor which is not in use.
scanIntervalInSeconds - Time interval to run Actor Garbage Collection scan.

Throws:

java.lang.IllegalArgumentException - When idleTimeoutInSeconds is less than or equal to 0. When scanIntervalInSeconds is less than or equal to 0. When idleTimeoutInSeconds is less than scanIntervalInSeconds.

Method Details

getIdleTimeoutInSeconds

public long getIdleTimeoutInSeconds()

Gets time interval to wait before garbage collecting an actor which is not in use.

Returns:

Time interval in Long to wait before garbage collecting an actor which is not in use.

getScanIntervalInSeconds

public long getScanIntervalInSeconds()

Gets time interval to run Actor Garbage Collection scan.

Returns:

Time interval in Long to run Actor Garbage Collection scan.

Applies to