i build a server that sends questions to clients depending on the cells they are in, for example if they are in Rome's cell, the server will send them questions different from the questions will be sent to clients in London's cell, and when a question be sent to a client, the server will make it as unavailable to the cell for one hour, i mean that question will never be sends to any client in that cell for one hour
and my question is how can i make java method for make that question is available after one hour?
EDIT1:
i have a hashtable , the keys are the cells, and the values are the question asked in these cells
EDIT2
this is the hashtable
static Hashtable<Integer, List<Integer>> unavialbeQuestions;
and when i asked question in a cell i make this
unavialbeQuestions.get(cellID).add(questionID);
and i want something like this
function makeQuestionAvailable(int questionID, int cellID){}