@@ -1086,7 +1086,11 @@ private static class ConversationArchivingRunnable extends Archiver<Conversation
1086
1086
{
1087
1087
ConversationArchivingRunnable ( String id )
1088
1088
{
1089
- super ( id , 500 , Duration .ofSeconds ( 1 ), Duration .ofMillis ( 50 ) ); // TODO make values configurable.
1089
+ super ( id ,
1090
+ JiveGlobals .getIntProperty ("conversation.archiver.conversation.max-work-queue-size" , 500 ),
1091
+ Duration .ofMillis ( JiveGlobals .getLongProperty ("conversation.archiver.conversation.max-purge-interval" , 1000 )),
1092
+ Duration .ofMillis ( JiveGlobals .getLongProperty ("conversation.archiver.conversation.grace-period" , 50 ))
1093
+ );
1090
1094
}
1091
1095
1092
1096
protected void store ( List <Conversation > workQueue )
@@ -1138,11 +1142,15 @@ protected void store( List<Conversation> workQueue )
1138
1142
/**
1139
1143
* Stores Messages in the database.
1140
1144
*/
1141
- private class MessageArchivingRunnable extends Archiver <ArchivedMessage >
1145
+ private static class MessageArchivingRunnable extends Archiver <ArchivedMessage >
1142
1146
{
1143
1147
MessageArchivingRunnable ( String id )
1144
1148
{
1145
- super ( id , 500 , Duration .ofSeconds ( 1 ), Duration .ofMillis ( 50 ) ); // TODO make values configurable.
1149
+ super ( id ,
1150
+ JiveGlobals .getIntProperty ("conversation.archiver.message.max-work-queue-size" , 500 ),
1151
+ Duration .ofMillis ( JiveGlobals .getLongProperty ("conversation.archiver.message.max-purge-interval" , 1000 )),
1152
+ Duration .ofMillis ( JiveGlobals .getLongProperty ("conversation.archiver.message.grace-period" , 50 ))
1153
+ );
1146
1154
}
1147
1155
1148
1156
@ Override
@@ -1206,7 +1214,11 @@ private static class ParticipantArchivingRunnable extends Archiver<RoomParticipa
1206
1214
{
1207
1215
ParticipantArchivingRunnable ( String id )
1208
1216
{
1209
- super ( id , 500 , Duration .ofSeconds ( 1 ), Duration .ofMillis ( 50 ) ); // TODO make values configurable.
1217
+ super ( id ,
1218
+ JiveGlobals .getIntProperty ("conversation.archiver.participant.max-work-queue-size" , 500 ),
1219
+ Duration .ofMillis ( JiveGlobals .getLongProperty ("conversation.archiver.participant.max-purge-interval" , 1000 )),
1220
+ Duration .ofMillis ( JiveGlobals .getLongProperty ("conversation.archiver.participant.grace-period" , 50 ))
1221
+ );
1210
1222
}
1211
1223
1212
1224
protected void store ( List <RoomParticipant > workQueue )
0 commit comments