-
Notifications
You must be signed in to change notification settings - Fork 306
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PAYARA-3419: Support deploying timers to deployment group and non-persistent timer service #3853
Changes from all commits
9689d40
2e83617
2c839fe
13bd76c
dc603a6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
* only if the new code is made subject to such option by the copyright | ||
* holder. | ||
*/ | ||
// Portions Copyright [2016-2018] [Payara Foundation] | ||
// Portions Copyright [2016-2019] [Payara Foundation] | ||
|
||
package org.glassfish.ejb.config; | ||
|
||
|
@@ -68,6 +68,8 @@ | |
|
||
@Configured | ||
public interface EjbTimerService extends ConfigBeanProxy, PropertyBag { | ||
String TYPE_NONE = "None"; | ||
String TYPE_DATABASE = "Database"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Perhaps TYPE_DATAGRID constant can be added to list all timer types. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The reason I included these two was, that these are special -- one is default, the other has special behaviour. There's nothing else in the code that would actually match against value DataGrid in the code, and changing the value would not affect the behavior of the server. Therefore I believe it would be misleading to bake it into API. |
||
|
||
/** | ||
* Gets the value of the minimumDeliveryIntervalInMillis property. | ||
|
@@ -160,11 +162,16 @@ public interface EjbTimerService extends ConfigBeanProxy, PropertyBag { | |
* Gets the value of the EJB Timer Service property. | ||
* | ||
* The EJB Timer Service type to use in Payara. | ||
* Supported values: | ||
* <ul> | ||
* <li>{@value #TYPE_DATABASE} for database-backed persistence</li> | ||
* <li>"DataGrid" for DataGrid-backed persistence</li> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Replace "DataGrid" with {@value #TYPE_DATAGRID} |
||
* <li>{@value #TYPE_NONE} for non-persistent timer service</li> | ||
* </ul> | ||
* | ||
* @return possible object is | ||
* {@link String } | ||
* @return One of the options above | ||
*/ | ||
@Attribute (defaultValue="Database") | ||
@Attribute (defaultValue=TYPE_DATABASE) | ||
String getEjbTimerService(); | ||
|
||
/** | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.