In this scene, Hamlet is speaking to himself about whether "to be, or not to be," which means to live or to die. He thinks he is all alone but the viewers know that King Claudius and Polonius are listening in on what he's saying.
To be, or not to be, that is the question...
II
Hamlet continues talking aloud of suicide by emphasizing the obvious intentions to die when he says the quote above. Both the King and Claudius are still listening secretly without Hamlet's knowledge.
To die, to sleep, no more; and by a sleep, to say we end. The heart-ache, and the thousand natural shocks. That Flesh is heir to?
III
Hamlet, slowly devoured by his own grief and slight insanity, comes to realizes that the catch of living in eternal sleep. His words, "There's the respect that makes calamity of so long life." are archaic for his realization of why life is long and the way and full of unfortunate events.
aye, there's the rub, For in that sleep of death, what dreams may somewhen we have shuffled off this mortal coil. There's the respect that makes calamity of so long life.
IV
That patient merit of th'unworthy takes, When he himself might his Quietus make With a bare Bodkin?
V
But that the dread of something after death, The undiscovered country, from whose bourn No traveller returns, puzzles the will, And makes us rather bear those ills we have, Than fly to others that we know not of?
VI
The importance of committing suicide was gone as the archaically said in the text bubble above his "lose of action" is simply reworded his want to die had disappeared; that the moment is gone the soliloquy finishes.
And enterprises of great pitch and moment, With this regard their Currents turn awry, And lose the name of Action.
After a while of speaking of the lacking features and his recent realization of life's "rub" , Hamlet takes out his bodkin as if he was ready to end himself and was eager to live no more. The two flies on the wall witnesses this.
He hastily changed his mind and is now contemplating about if he should really end his life for although the misfortunes of his life are too painful, his fear of what is unknown about the afterworld scare him.