Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
ARSnova Backend
Manage
Activity
Members
Labels
Plan
Issues
27
Issue boards
Milestones
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
ARSnova Backend
Commits
9a660c9c
Commit
9a660c9c
authored
12 years ago
by
Julian Hochstetter
Browse files
Options
Downloads
Patches
Plain Diff
Task #3890: configurable cleanup delay
parent
d74b6f57
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/java/de/thm/arsnova/services/SessionService.java
+7
-1
7 additions, 1 deletion
src/main/java/de/thm/arsnova/services/SessionService.java
src/main/webapp/arsnova.properties.example
+3
-0
3 additions, 0 deletions
src/main/webapp/arsnova.properties.example
with
10 additions
and
1 deletion
src/main/java/de/thm/arsnova/services/SessionService.java
+
7
−
1
View file @
9a660c9c
...
...
@@ -64,6 +64,12 @@ public class SessionService implements ISessionService {
@Autowired
ARSnovaSocketIOServer
server
;
/**
* minutes, after which the feedback is deleted
*/
@Value
(
"${feedback.cleanup}"
)
private
int
cleanupFeedbackDelay
;
private
String
databaseHost
;
private
int
databasePort
;
private
String
databaseName
;
...
...
@@ -98,7 +104,7 @@ public class SessionService implements ISessionService {
@Override
@Scheduled
(
fixedDelay
=
5000
)
public
void
cleanFeedbackVotes
()
{
final
long
timelimitInMillis
=
/*10 * 60 **/
10000
;
final
long
timelimitInMillis
=
60000
*
cleanupFeedbackDelay
;
final
long
maxAllowedTimeInMillis
=
System
.
currentTimeMillis
()
-
timelimitInMillis
;
Map
<
String
,
Set
<
String
>>
affectedUsers
=
new
HashMap
<
String
,
Set
<
String
>>();
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/arsnova.properties.example
+
3
−
0
View file @
9a660c9c
...
...
@@ -14,6 +14,9 @@ security.ssl=false
security.keystore=/etc/arsnova.thm.de.jks
security.storepass=arsnova
# minutes, after which the feedback is deleted
feedback.cleanup=10
couchdb.host=localhost
couchdb.port=5984
couchdb.name=arsnova
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment