Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

About booking GUI

 
Jeff Song
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,All
What I want to ask is: If we attemp to book a flight which already be locked by another client.
What the current client GUI should look like? Standby or still active for other operations such as search or book another flight.
Is it not allow for GUI to freeze while the lock is work on?
In my way , my GUI will available for operation while the lock was blocked which means my client get the record control. But I wonder its right.
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well Jeff, that's an interesting question. And it is one without a real answer. It all depends on what experience the users want against what you think is the safest and bug proof way. Meaning if you allow the user to continue while it is waiting for the lock, is there any data corruption that could possibly happen, thread control, etc.
While the record is being locked you can have a screen pop up that says "Currently Processing your Request, Please Wait". This is always nice to the users and is "User Friendly", an hourglass can also work, but not as user friendly.
It is up to you to decide, and to put your decision in your design.txt and explain your position.
To be honest, I did nothing, the user just waits.
Mark
 
Jeff Song
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,Mark,
Thank you very much for your response. The question confused me for a bit long time. But I think I have found the answer now.
Thanks again!
 
Adam Till
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
So why did youre app do nothing when a booking was in progress? What reasons did you give (can I ask that?)?
Cheers
 
Mark Spritzler
ranger
Sheriff
Posts: 17278
6
IntelliJ IDE Mac Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, because it was in progress.
Mark
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic