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:
-
Documented
Inherited
Retention
Target
ClientCache
Import
DurableClientConfiguration
-
Required Element Summary
-
Optional Element Summary
Modifier and TypeOptional ElementDescriptionboolean
Configure whether the server should keep the durable client's queues alive for the timeout period.boolean
Configures whether theClientCache
is ready to recieve events on startup.int
Used 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 theClientCache
is 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
-