Package org.angular.ts.ng
Interface WorkerConfig<TReceive>
@JsType(isNative=true,
name="ng.WorkerConfig",
namespace="<global>")
public interface WorkerConfig<TReceive>
Public AngularTS WorkerConfig contract exposed through the global ng namespace for Closure-annotated applications.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceTypeScript callback contract for this property. -
Method Summary
Modifier and TypeMethodDescriptionstatic <TReceive> WorkerConfig<TReceive> create()Decode an inbound native message before delivering it to subscribers.doubleMaximum automatic restarts.doubleBase restart delay.booleanRestart the worker after a native runtime error.voidsetDecode(WorkerConfig.DecodeCallback<TReceive> decode) Decode an inbound native message before delivering it to subscribers.voidsetMaxRestarts(double maxRestarts) Maximum automatic restarts.voidsetRestart(boolean restart) Restart the worker after a native runtime error.voidsetRestartDelay(double restartDelay) Base restart delay.
-
Method Details
-
create
-
getDecode
Decode an inbound native message before delivering it to subscribers. -
getMaxRestarts
@JsProperty double getMaxRestarts()Maximum automatic restarts. Defaults to 3. -
getRestartDelay
@JsProperty double getRestartDelay()Base restart delay. Exponential backoff is capped at 30s. -
isRestart
@JsProperty boolean isRestart()Restart the worker after a native runtime error. Automatic restart is disabled by default. -
setDecode
Decode an inbound native message before delivering it to subscribers. -
setMaxRestarts
@JsProperty void setMaxRestarts(double maxRestarts) Maximum automatic restarts. Defaults to 3. -
setRestart
@JsProperty void setRestart(boolean restart) Restart the worker after a native runtime error. Automatic restart is disabled by default. -
setRestartDelay
@JsProperty void setRestartDelay(double restartDelay) Base restart delay. Exponential backoff is capped at 30s.
-