Annotation Interface EnableDurableClient
@Target(TYPE)
@Retention(RUNTIME)
@Inherited
@Documented
@Import(DurableClientConfiguration.class)
public @interface EnableDurableClient
The
EnableDurableClient annotation configures a ClientCache instance as a Durable Client.- Since:
- 1.0.0
- See Also:
-
DocumentedInheritedRetentionTargetClientCacheImportDurableClientConfiguration
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionbooleanConfigure whether the server should keep the durable client's queues alive for the timeout period.booleanConfigures whether theClientCacheis ready to recieve events on startup.intUsed only for clients in a client/server installation.
-
Element Details
-
id
String idUsed only for clients in a client/server installation. If set, this indicates that the client is durable and identifies the client. The ID is used by servers to reestablish any messaging that was interrupted by client downtime.
-
-
-
keepAlive
boolean keepAliveConfigure whether the server should keep the durable client's queues alive for the timeout period. Defaults to true.- Default:
- true
-
readyForEvents
boolean readyForEventsConfigures whether theClientCacheis ready to recieve events on startup. Defaults to true.- Default:
- true
-
timeout
int timeoutUsed only for clients in a client/server installation. Number of seconds this client can remain disconnected from its server and have the server continue to accumulate durable events for it. Defaults to 300 seconds, or 5 minutes.- Default:
- 300
-