Questions tagged [expirationhandler]

6 questions
5
votes
4 answers

Is there an expiring map in Java that expires elements after a period of time since *first* insertion?

I tried looking at cache mechanisms, such as Guava's Cache. Their expiration is only since last update. What I'm looking for is a data structure that stores keys and cleans the keys after a time has passed since the first insertion. I'm planning for…
AlikElzin-kilaka
  • 34,335
  • 35
  • 194
  • 277
1
vote
1 answer

Preferred way to approach expired records delition in SQLite

There are 3 tables in the database -- Students, Courses, Professors. Each student has activation_deadline column, which is set to NULL upon activation. I need some mechanism that will periodically delete students who's activation_deadline is overdue…
1
vote
1 answer

Azure Event Grid - discovered expired events?

I was wondering if there is any way to take actions on expired Azure Event Grid event delivery? A couple use cases, 1) simply log the fact an event wasn't delivered, 2) create the equivalent of a dead letter queue. I couldn't find anything in the…
MarkE
  • 123
  • 8
1
vote
1 answer

Xamarin Form: iOS how to simulate background fetch expired

I can simulate the background fetch using iOS simulator. Is it possible to simulate the expiration so it can call the expire handler? I tried to use a infinite loop and run as background fetch on an simulator but doesn't seem to trigger it. task =…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198
0
votes
1 answer

How to automatically remove part of a stock when it reaches expiration date in Python? (within FIFO method)

I have a pandas dataframe with the structure shown below: | Contract |Purchase Date|Value|Expiration Date|Demand|Stock | A | 2019-01-01 |1000 | 2019-01-04 |700 | 300 | B | 2019-01-02 |1000 | 2019-01-05 |1000 | 300 | C …
0
votes
1 answer

Xamarin iOS: Will finally be called when expired handler called in background fetch

If I have a function in PerformFetch to do background fetching in iOS. I have "finally" statement inside the PerformFetch. When the background fetch expired will the finally block get call as well. Or will it go straight to the ExpirationHandler…
LittleFunny
  • 8,155
  • 15
  • 87
  • 198